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.

Pre-populating form fields

  1. Hi,

    Is there any way to pre-populate a form field (regular or hidden) based on URL? I would love to use Gravity forms for my training evaluation, but it would be extremely helpful if I could load a hidden field or pre-select an item from a drop-down menu based on the link a user would click on to access the form.

    If that's not possible, how about a method for pre-filling a field based on the date/time?

    Thanks in advance!

    Posted 14 years ago on Tuesday June 28, 2011 | Permalink
  2. What do you mean based on the URL?

    Do you mean the URL the page is on? Or do you mean by passing a query string value in the URL (ex. mydomain.com/mypage?value=x).

    Can you clarify? Either way it's possible. Fields can be dynaically populated using PHP or via the query string. Here are some tutorials:

    http://www.gravityhelp.com/documentation/page/How_To

    There are a few different tutorials related to dynamic population on that page.

    Posted 14 years ago on Tuesday June 28, 2011 | Permalink
  3. Thank you for the prompt response! I can't access the documentation, but knowing that it is possible answers my question.

    I was thinking more along the lines of a query string. I'll be loading the form within an iPad application I am currently developing and can set the query string dynamically based on the workshop the user is currently attending.

    Thanks again!

    Posted 14 years ago on Tuesday June 28, 2011 | Permalink
  4. Then yes, you can accomplish exactly what you describe and there is a tutorial in the documentation that you will be able to access in the How To section that explains how to populate fields dynamically.

    Posted 14 years ago on Tuesday June 28, 2011 | Permalink