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 can I populate a form field with a GET param passed in the URL of the page ?

  1. mike
    Member

    Hi,

    I'd like to be able to do this :

    - Click on http://www.mycoolwebsite.com/jobs/?ref=1234566789
    - Arrive on jobs page with awesome Gravity Form and populate the "Referecence" field with "1234567989"

    Is that possible ?

    Posted 13 years ago on Thursday April 14, 2011 | Permalink
  2. - Edit your form
    - Add a hidden field to your form
    - Edit the hidden field and give it a field label of "Reference"
    - Select the Advanced tab
    - Check the "Allow field to be populated dynamically" checkbox
    - Give it a parameter name of "reference" without the quotes
    - Save your form

    Now if you call your forms page and pass ?reference=XXXXXX to it the hidden field will be dynamically populated with that value.

    For example: http://www.mydomain.com/myform?reference=123456

    Posted 13 years ago on Thursday April 14, 2011 | Permalink
  3. myintamits
    Member

    i get page not found when accessing my form url with ?reference=XXXXXX . can you help

    Posted 13 years ago on Saturday May 14, 2011 | Permalink
  4. myintamits
    Member

    any help?

    Posted 13 years ago on Tuesday May 17, 2011 | Permalink
  5. You would have to post a link to your page so we can see it happening.

    Posted 13 years ago on Tuesday May 17, 2011 | Permalink
  6. myintamits
    Member

    can i send you pm' for my link

    thanks

    Posted 13 years ago on Monday May 23, 2011 | Permalink
  7. No PM here. You can send your link via our contact form. Please include a link back to this thread for us to reference.

    Posted 13 years ago on Monday May 23, 2011 | Permalink
  8. Oddly enough it appears "tour=" is a reserved query string parameter on your site, which means you can't use tour as your parameter. Try using something else like "tourid=" and tourid as your parameter that you configure in your form.

    Posted 13 years ago on Tuesday May 24, 2011 | Permalink