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.

Dynamic Population from previous form

  1. TimmyD
    Member

    I'm a little confused as to how query strings or dynamic population can help in this scenario.

    The aim to have someone sign up to a newsletter with just a name and email on one form - imagine that sitting on a sidebar of an article. On submission they are then taken off to another form - on a whole page - in an attempt to collect more data i.e. preferences if they wish to provide them.

    What's the best method of ensuring that the second form, to collect preferences, automatically populates both the name and email fields.

    On the same note, is a similar solution possible where auto populating fields based on a signed in user's info is concerned. e.g. user signs into website and when accessing a similar preference page, the fields are populated based on the users email, username etc.

    Many thanks in advance

    Posted 12 years ago on Thursday August 23, 2012 | Permalink
  2. Yes and yes. You can do this with dynamic population and query strings. In the "sidebar" form you will setup the confirmation redirect (in the form's settings) to go to the page with the "more information" form. On this form you will have the two fields in question checked to by dynamically populated (which is in the advanced tab of each field). Give each a parameter name that you'd like to identify them with (no spaces, but you can use underscores). Then back on your side bar form, in the confirmation url redirect setting, you would enable the query string and then place your paramater names with the values you will get from using the merge tag drop down. For example:

    name={MergeTag1}&email={MergeTag2}

    This will append to the url of the more information form, so when they go there, those two fields will be populated accordingly.

    If a user is already logged into your site, you can use our user merge tags to place in the "default value" of each field that would pertain to user meta. See this page (user section):

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

    Posted 12 years ago on Thursday August 23, 2012 | Permalink