Firefox Select Fixer
🧪
Firefox will auto-fill fields (including select fields) with the selected option upon refresh. This can be problematic with Populate Anything if fields or Live Merge Tags rely upon the value of the select as Firefox does not trigger any events. To work around this, we compare the values between the select field and the option with the selected attribute. If they differ, we trigger a forceReload event which is an event Populate Anything listens for.
Installation:
- Install and Activate https://gravitywiz.com/gravity-forms-code-chest/
- Navigate to Form Settings > Custom JavaScript and add this snippet.
Instructions
See “Where do I put snippets?” in our documentation for installation instructions.
Code
Filename: gppa-firefox-select-fixer.js