I know that fields can be dynamically populated 3 different ways.
- Via query string (ex. domain.com/your/form?firstname=carl)
- Via hooks using PHP
- Via short code
I also know I can dynamically populate dropdowns using the gform_pre_render filter, as written about in your docs (http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields).
That said, I don't think what I know allows me to solve the problem I'm facing.
I've developed a plugin that does URL rewriting for landing pages (called ElegantPURL - http://elegantpurl.com) and offers users an ability to use pre-established short codes that look like this: [epurl_firstname]. We also let them create additional variables for use on the landing pages, and we generate short codes for those too ([epurl_customfield]).
I want to integrate with GravityForms but when I put [epurl_firstname] into a field's default value, it just shows up as text, rather than rendering.
Is there a way to use the filter above (or a hook) to tell all forms (not a specific form) to look for short codes and resolve them, before rendering the form?