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.

Conditional Logic Help (please)

  1. Greetings,

    I've had a look at the posts on conditional logic and specifically http://forum.gravityhelp.com/topic/conditional-redirects-preserving-posted-data and unfortunately I'm not sure it's what to do as I'm not a php dev, more a designer with front end mark-up skills.

    What I have is a single input form (email) that I want to pre-populate a more complex for once a user has submitted.

    If anyone is able to explain to me in a simple way or help me out it would be very much appreciated.

    Posted 14 years ago on Tuesday November 30, 2010 | Permalink
  2. You wouldn't use conditional logic to accomplish this. Here is what you would do:

    FORM 1 (single input form):

    - Edit the Form
    - Edit Form Settings (Hover over Form Title/Form Description area and select Edit)
    - Select the Confirmation Tab
    - Select "Redirect" for your Confirmation Message
    - Enter the full HTTP path to the page containing FORM 2
    - Click the "Pass Field Data Via Query String" checkbox
    - In the Query String builder box enter "email=" and then select your email field from the "Insert form field" drop down. You should end up with something like this, please note the email field variable may vary slightly: http://grab.by/7Elh
    - Save your form

    FORM 2 (form you want to populate dynamically)

    - Edit the Form
    - Edit the Email field you want to populate dynamically
    - Select the Advanced Tab
    - Check the "Allow field to be populated dynamically" checkbox
    - Enter a parameter name of "email" You will end up with something that looks like this: http://grab.by/7ElF
    - Save your Form

    Now when you submit Form 1 it should redirect to the page containing Form 2 passing the value of the EMail field via the query string. Form 2 should then pre-populate it's Email field with the value of the email in the query string.

    Posted 14 years ago on Tuesday November 30, 2010 | Permalink