PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Gform_field_value_$parameter_name not working

  1. I'm using the very simple code from this page in my theme's function.php file

    http://gravityhelp.com/documentation/page/Gform_field_value_$parameter_name

    But its not working at all. I want to fill out the default value via Hook. Its working via QueryString and Short Code. I'm using OptimizePress theme. It does not throw any error but keeps the field value NULL.

    Posted 13 years ago on Thursday September 1, 2011 | Permalink
  2. We're going to need more information to help you with this. Can you post your functions.php at pastie.org or pastebin.com, then post a link to your web page with the form. And show us how you're populating the field, including the parameter name.

    Note the parameter name is case sensitive.

    Thanks.

    Posted 13 years ago on Thursday September 1, 2011 | Permalink
  3. Here is the code:
    http://pastebin.com/pxBWqqP2

    Form is in private area so cannot give you link of form but its just a simple form and I'm following all steps as in:
    http://gravityhelp.com/documentation/page/Gform_field_value_$parameter_name

    Posted 13 years ago on Friday September 2, 2011 | Permalink
  4. Based on what I see here, I cannot explain why it's not working. If you export the form and post a link to it, I can take a look at it.

    Where does the value MyApp come from? Are you always setting the value of app to MyApp? You mentioned that it works via query string and shortcode. How is it supposed to work when you use the filter? Will it always be set to MyApp?

    Posted 13 years ago on Friday September 2, 2011 | Permalink