Dynamically Populate Gravity Form Fields From Cookies
Adds support for dynamically populating Gravity Form fields from cookies. Cache-friendly.
by Ethan Clevenger · github.com/ethanclevenger91/gf-dynamic-population-from-cookies
★ 1stars
6composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/ethanclevenger91/gf-dynamic-population-from-cookies/archive/refs/heads/main.zipAlso on Packagist as ethanclevenger91/gf-dynamic-population-from-cookies:
composer require ethanclevenger91/gf-dynamic-population-from-cookiesFrom the readme
Requires Plugins: gravityforms
Adds cache-friendly support for dynamically populating Gravity Form fields from cookies.
Using Gravity Forms' existing dynamic population settings, fields can now get their value from cookies. This happens client-side so it's cache-safe.
How you set the cookies is up to you. If you're setting the cookies on the same page as the form you want to read them, be sure to set the cookie early in the page.
For example, you could simply install Store UTM Params to Cookie, which automatically saves any utm query string params to a prefixed cookie. You could then enable dynamic population for a Gravity Form field using the field name suputmterm.
Initial release