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.

Submit To Page?

  1. I suspect this may have been covered (be surprised if it wasn't) so I'd be obliged to a link to an existing thread if there is one... here's my question:

    My client would like a very simple Name / Email address form (in a sidebar or footer) to, upon clicking "submit," take the user to a dedicated page where they would then fill out more, optional fields. Some "must haves" include:

    - The name and email address data carries over to the dedicated page
    - ALL the information entered is added to a MailChimp mailing list (they're already using the MC plugin) *even if* the user doesn't add anything on the dedicated page.

    Any ideas on how to best execute this?

    Many thanks,

    Matt

    Posted 11 years ago on Monday February 4, 2013 | Permalink
  2. You need two forms: one in the widget/sidebar/footer, to capture the name and email. Then, the confirmation for that form will redirect to your longer form with additional optional fields. You will have a name and email field in the second form, and those two fields will be checked, on the advanced tab, "Allow field to be populated dynamically" and you will have parameter names entered there. You can read about setting up dynamic population here: http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population#Query_String

    The confirmation for form one will redirect to form two, and you will pass the name and email to form two via the query string.

    Then, in form two, you capture your additional, optional information, and form two is the form that submits the subscription to Mailchimp with all the optional fields.

    Does that help?

    Posted 11 years ago on Tuesday February 5, 2013 | Permalink
  3. Chris, that sure does help, assuming I can wrap my head around dynamic population. I'll test it out... I might be back with questions!

    Thanks very much!

    Posted 11 years ago on Tuesday February 5, 2013 | Permalink
  4. OK, let us know if you need help.

    Posted 11 years ago on Tuesday February 5, 2013 | Permalink
  5. Nick5a1
    Member

    Hi Chris,

    WHat happens in your scenario if they only submit the first form and never the second? Would you have both forms connected to Mailchimp? The first form would then add the subscriber with just the name and email. Would the second form be able to "update" the first form submission?

    Edit: I'm just testing this out and for the confirmation redirect url I put:
    ../mailing-list
    as the widget is on my single post page which has permalink structure domain.com/[post-name]

    What can I put in the redirect url to go up a directory?

    Posted 11 years ago on Thursday May 2, 2013 | Permalink
  6. David Peralty

    With the solution that Chris gave, if they just submit on the first page and bail out, then nothing happens. You would have an entry with a name and e-mail address but it wouldn't be sent to Mailchimp, but you could have both forms attached to mailchimp and it should work as expected.

    You would use a confirmation that is a URL redirect, not a page redirect. Hope that helps.

    Posted 11 years ago on Thursday May 2, 2013 | Permalink