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 from one to another in same session

  1. andrew carbn
    Member

    Hi Guys,

    I'm looking to try and carry some drop-down choices and text over from one form to another when the user has entered choices and text.

    If you have a look at the sidebar form on the right hand side ( http://www.namebadgesdirect.co.uk/badge-styles/printed-name-badges )

    I'm hoping to populate the actual main order form here: http://www.namebadgesdirect.co.uk/order with the previous options entered from the sidebar badge quote widget after a user clicks the 'order' button.

    I do not know how to code but can make an educated guess when thrown in at the deep end :_)

    Cheers!

    Posted 13 years ago on Monday October 17, 2011 | Permalink
  2. You don't need to do any coding. You will need to pass the values from form 1 to form 2. That means for form 1 (sidebar form) you need to use a redirect as the confirmation, and then build a query string, to send the values along.

    Then, in form 2, you need to check the box "allow field to be populated dynamically" and enter the parameter names you used in your query string. That's really all there is to it. That will pre-populate fields in form 2 with values that were entered in form 1.

    If you get stuck, let us know.

    Posted 13 years ago on Monday October 17, 2011 | Permalink
  3. andrew carbn
    Member

    Wow... It sounds tricky but I think I'm just not familiar with the language. I will get stuck in and let you know.

    Cheers! :_)

    Posted 13 years ago on Tuesday October 18, 2011 | Permalink
  4. It's not at all tricky. Dig in and give it a try, and let us know where you get stuck. We're happy to help.

    Posted 13 years ago on Tuesday October 18, 2011 | Permalink
  5. Documentation on how to allow the field to be populated dynamically:
    http://www.gravityhelp.com/documentation/page/Allow_field_to_be_populated_dynamically

    Documentation on building your query string (for the redirect confirmation on form 1):
    http://www.gravityhelp.com/documentation/page/Form_Settings#Confirmation
    http://www.gravityhelp.com/documentation/page/File:Form-settings-confirmation-redirect.png

    Posted 13 years ago on Tuesday October 18, 2011 | Permalink
  6. Is there any way to give specific examples for the http://www.gravityhelp.com/documentation/page/Allow_field_to_be_populated_dynamically? Such as a form with form names, and exactlyl what you would put in? I don't understand parametername vs. value. Do I need to specify a value? Isn't that's what is being passed? Or do I just leave "value"?

    Posted 13 years ago on Thursday November 17, 2011 | Permalink
  7. You specify the value. The value is what you want to populate the field with. The parameter name is the parameter name you assigned to that field when you configured it to be populated dynamically in the form editor.

    Please refer to the How To section of the Documentation. There are examples on how to dynamically populate fields that explain the process.

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

    Posted 13 years ago on Thursday November 17, 2011 | Permalink
  8. nscruggs
    Member

    I'm trying to pass the name and email address from GF form 2 to GF form 3 using shortcodes and am not able to get it working.

    In form 2, I selected redirect and entered the url (even though it's just another WP page). I checked the Pass Field Data box and using the example below the comment box (Sample: phone={Phone:1}&email{Email:2}) I entered

    firstname={Name (First):1.3}&lastname={Name (Last):1.6}&email={Email:2}

    On GF 3 I added the name field and checked populate dynamically. Under the Field Parameter Names I entered
    [gravityforms id=2 field_values='firstname']

    I tried different combinations of with and without the apostrophe. When I update the form the parameters I entered would be missing the closing apostrophe and/or bracket.

    Posted 12 years ago on Tuesday January 10, 2012 | Permalink
  9. Populating with the shortcode does not work like that. You should not be using the shortcode method here. Here is the documentation:

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

    Remove that from the shortcode on form 3, and see if it works. If you have set up form 3 to have those fields populated dynamically, and in form 2 you are using a confirmation redirect with the same parameter names, it should work.

    Please post a link to your form if not and we will see if we can help. Thank you.

    Posted 12 years ago on Tuesday January 10, 2012 | Permalink
  10. nscruggs
    Member

    Thanks! That worked.

    Posted 12 years ago on Tuesday January 10, 2012 | Permalink
  11. Very good. Glad that worked for you.

    Posted 12 years ago on Tuesday January 10, 2012 | Permalink

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