Hi there,
I have CMS admin page form (from a gridfield, editing item) with a dropdown that calls a AJAX script to check some conditions and post back a message warning user that change might cause some issues. I have this part all working, but have to reload page after clicking edit to get javascript file loaded.
Have placed this line in _config.php
LeftAndMain::require_javascript('mysite/javascript/my_scripts.js');
This doesn't get loaded after you click edit from main gridfield table list.
What is the best way to hook javascript into the cms to use in forms?
Thanks
Regards
Scott