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.

How to populate a form dynamically

  1. davidcross
    Member

    Hi,

    I've referred to http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population

    I've a form on a page to which variables are being submitted

    If I use phpinfo I see a PHP POST variable of:

    _POST["state"] Oregon

    Exactly what would I put in the field after checking "Allow field to be populated dynamically" please?

    I'm not a programmer just trying to hack a form together here and need additional help/example

    Thank you

    Posted 11 years ago on Tuesday October 2, 2012 | Permalink
  2. David Peralty

    The dynamic population would only work with a get variable. So if you were sending the value in a string in the URL like:

    http:site.com/form/?state=Oregon

    Then in the Parameter for the field you want the state to appear in would be state. To do it with POST variables, you would need to know PHP well enough to figure out how to use our hooks system, specifically:

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

    All my best!

    Posted 11 years ago on Tuesday October 2, 2012 | Permalink