I’m facing an issue while trying to load a custom JavaScript file in Perfex CRM v19.9. I created a file named custom_lead_validation.js inside assets/js/, and I’m attempting to load it through the app_admin_footer hook in my module’s init.php. However, the file is not being loaded on any admin page, and the hook itself doesn’t seem to trigger. I’ve already cleared the cache and confirmed the path, but the script still doesn’t appear in the page source or browser console.
Has anything changed in v19.9 regarding how scripts should be added through hooks?
Is there a new or recommended way to enqueue custom JS files in admin pages?
Any guidance or updated method would be really appreciated. Thanks!