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.

dynamically populate gravity form

  1. Hey everyone

    Got 2 x forms on my website.
    The users submits form A.
    Now i want a user to submit form B, but with pre-populated hidden values from form A already.

    Is it possible to pre-populate form B with already submitted hidden values from form A?
    So when the users submits form B, then i will receive those submitted fields with certain already submitted fields from form A.

    Can someone please perhaps point me into the right direction or let me know where i can read up on such a solution if possible?

    Kind regards,
    Sylvia

    Posted 12 years ago on Friday September 23, 2011 | Permalink
  2. Is user submitting Form A and it immediately redirects them to Form B or would the user be accessing Form B sometime in the future? Because the implementation for these 2 scenarios would be completely different.

    Posted 12 years ago on Friday September 23, 2011 | Permalink
  3. Hey Carl

    The user would be accessing form B sometime in the future.

    Kind regards,
    Sylvia

    Posted 12 years ago on Sunday September 25, 2011 | Permalink
  4. This makes things much more complicated. Because you need some way for Form B to know that the user has already filled out a form to know if it should dynamically populate some form field values. The only way you could probably do something like this is requiring them to be logged in and then doing it based on their WordPress user ID.

    It is possible to do this, but it's much more complicated and not something that can be explained quickly. You would have to write custom code to handle this and implement a way for the user to be recognized, then query existing data and dynamically populate the fields.

    The first scenario where Form A passes the user to Form B and pre-populates data immediately is much easier to implement without any custom code via the URL redirect to redirect to the 2nd form and pass data via the query string.

    Posted 12 years ago on Monday September 26, 2011 | Permalink
  5. Thanks again for your comprehensive response Carl. Appreciate it.

    Hopefully this explanation will make things a little bit easier:

    1. users can sign up on the website for membership.
    2. after sign-up and payment was successful they need to login to the website and then first submit data via a gravity form (Form A). They have to complete this form on the website and cannot by pass it.
    3. after a while we have a product survey (Form B) which the user needs to complete if they want to.
    4. There are certain answers from Form A that needs to be included within Form B, but hidden or pre-populated.

    Hope that makes things a little bit clearer & easier to achieve.

    kind Regards,
    Sylvia

    Posted 12 years ago on Thursday September 29, 2011 | Permalink
  6. This is certainly possible. But it's not something Gravity Forms does out of the box. You would have to use custom code to handle dynamically populating fields, etc.

    With the user logged in that will make things easier because their user id is stored with the entry data. So you could query the entry data for Form A based on the user id and then populate fields in Form B from entry data from Form A.

    So it is doable, but it would have to be done as a customization and it's difficult to try and explain something like this in detail in a support forum post. As it's a customization you'd have to write the code to accomplish what you want to do or hire a developer to do so and go over the workflow and then implement the customization.

    Here are some developers you can try contacting if you need assistance with this customization:

    Ounce of Talent
    http://www.ounceoftalent.com

    Raquel Kohler
    raquelaraujokohler@gmail.com

    WebDevStudios
    http://www.webdevstudios.com

    Scott Kingsley Clark
    http://scottkclark.com

    Out of those Raquel will probably have the best availability as she typically takes on smaller projects.

    There is a larger list of developers with Gravity Forms experience here (although I can't guarantee they all know what they are doing):

    http://wpcandy.com/pros/experienced/with-gravity-forms

    Posted 12 years ago on Thursday September 29, 2011 | Permalink

This topic has been resolved and has been closed to new replies.