Load Init Scripts Early
🧪
Some perks (e.g. Copy Cat, Address Autocomplete) allow their initialization options to be filtered but the Custom JS plugin outputs its scripts too late. This changes bumps GF Custom JS scripts to be output first.
Developer Note: It’s not possible to simply change the priority of the “gform_register_init_scripts” filter as field-based init scripts are registered before the filter is called.
Instructions
See “Where do I put snippets?” in our documentation for installation instructions.
Read the Walkthrough
Code
Filename: gfjs-early-init-scripts.php