New answers tagged

2 votes

How to add JavaScript to an AJAX snippet

The buildForm hook works for popups too. TIP: put some logging in a buildForm hook to log the $formName, then visit the page you're interested in. If you're interested in new case, see https://lab....
Demerit's user avatar
  • 22.9k
1 vote

How to add custom JavaScript globally?

You can implement hook_civicrm_coreResourceList to add your script to the list of items loaded by CiviCRM on every page.
Coleman's user avatar
  • 18.6k

Top 50 recent answers are included