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 fields dynamically via query string

  1. Am trying to populate a form text field using a text link on another page using the query string method.

    To do this I

    created the form "Information"
    inserted this form into the page "Information request"
    Permalink to the page with the form would be http://www.example.com/wordpress/?page_id=90

    Now lets say I'm on another page and want the user to click on a text link to the page with the form and populate one of the fields. (field has been ste to allow populating dynamically)

    click here to request this

    I put a slash between the page ID and fieldname but this does not work.

    Posted 13 years ago on Saturday June 19, 2010 | Permalink
  2. Here are some threads that discuss populating fields dynamically using the querystring.

    http://forum.gravityhelp.com/topic/sending-dynamic-form-variables-to-another-form#post-3097

    http://forum.gravityhelp.com/topic/how-to-send-parameters-from-one-from-to-another

    Posted 13 years ago on Sunday June 20, 2010 | Permalink
  3. Hi,
    Those threads did not exactly answer my question but figured it out through a little experimentation.

    Using the permalink of the page your form is on you can populate a field by simply adding &fieldname=value

    For example, I'm building a website where you can rent boats.
    On each boat page I have a text link or button so that you can reserve that specific boat.
    Hitting the button you are brought to the form page and the name of the boat is prepopulated in the Boat Name field.

    The link looks like this:

    <a href="http://www.example.com/wordpress/?page_id=90&Boat=Blue Tide">Reserve this boat</a>

    Posted 13 years ago on Sunday June 20, 2010 | Permalink