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.

New support on creating a 2 part form with redirects at the end

  1. Trevorbox

    Ok so here is what I need to do. Really need advice asap to get this one. On the home page of my website will be a quote form with like 4 questions, then I want a "next" step to go to another page and finish the form because it's long. THEN I want the form to redirect to a specific page depending on the location they pick.

    So if a user chooses "california" I want it to go to our California page with prices. If this select "arizona" on the form, the Arizona page. Ideally these selections would be in a drop down box. Any help would be greatly appreciated.

    Posted 11 years ago on Thursday August 16, 2012 | Permalink
  2. OK, so you have a multipage form, because it's long. The first page has a few questions, the next page has more questions, and based on some of the answers on the second page, you conditionally redirect them to a page with results specific to their choice?

    One way to do it is to make your confirmation a redirect. You can elect to "show values" in your field, then in the field, enter the slug of the page where the prices are located for that state. So, if your checkbox or radio button or drop down option is "California" maybe your value would be "california-prices". If your pages are named consistently this will be even easier.

    Once you have the value which corresponds to the slug of the page where the pricing resides, you can do this in your redirect for the confirmation:

    http: // your. example. com/{FieldName:3:value}/

    The key there is "value" in the merge tag. When you do this, the value of the selected choice from field 3 (in this example) will be appended to your site URL, and the visitor will be sent there.

    I hope the instructions are not too cryptic. If you need help getting this up and running please let me know.

    There are other ways to do this, but this one might be easiest.

    Posted 11 years ago on Friday August 17, 2012 | Permalink
  3. Trevorbox

    Ok let me see if I understand right, not sure if I'm on the right track. What I have isnt working yet, but let me say what I did.

    -Went to the locations field and defined a value for the location city
    -went to form options and selected redirect
    -Inserted url
    -selected pass field data
    -inserted the code {Location:1:value} into the merge code table

    The last step is where i am confused. What do I put in the :1:value areas. Locations is the tile of the drop down, i inserted it using the merge tag.

    Posted 11 years ago on Friday August 17, 2012 | Permalink
  4. Can you send me ( email ) a WordPress administrator login for your site please? I would like to take a look and help you with the configuration. Thank you.

    Posted 11 years ago on Saturday August 18, 2012 | Permalink
  5. I sent you a detailed email. However, for anyone interested in doing the same thing, there were just a couple of configuration issues.

    1. I split the URL in this post to post it in the forums here, without modification, but I was not clear that it should look like a normal URL with no spaces in it. I fixed that in this form
    2. The {FieldName:3:value} needs to be the actual merge tag from your form; then you append ":value" after the generated merge tag. For this form, it was field 19
    3. There is no need to use the query string, just select Redirect for the confirmation, and configure the URL properly
    4. To be clear, the values for field 19 need to be set to the slug of the page where you want to redirect the visitor upon successful form submission. That way, when you insert the merge tag, and append ":value" to it, there is a unique value to be read from the form field, field 19 in this case
    5. There were a couple other minor inconsistencies in the form which needed to be addressed

    Also, because there is no "Insert merge tag" drop down for the URL when using a "Redirect" confirmation, I usually check the box "Pass Field Data Via Query String" so I can see a merge tag drop down, then I select my field, so I get the exact format for the merge tag. Copy that, and paste it where you want it in the URL area; then uncheck the box, since we don't actually need to use the query string. We were just cheating a little to get the proper format for the merge tag. The Confirmation > Redirect URL field does support merge tags, there is just no drop down there to make it easy.

    Hope that helps someone who wants to conditionally redirect the visitor after form submission, based on a value they selected in your form.

    Posted 11 years ago on Tuesday August 21, 2012 | Permalink
  6. Trevorbox

    Thanks a ton. The last thing if the contact form could do it, would be perfect. Since the form auto directs to a specific page and price, we also wanted the specific page and price to be included in the email form we send to us and them. Is there a way to custom input the prices of each selection?

    Posted 11 years ago on Tuesday August 21, 2012 | Permalink
  7. I'm not sure I understand your last question. Where do the prices come from? Are you saying the pricing information is on the landing page where they are redirected, but you want to include that pricing information in the email (which is sent before they land on that page)? There is no way I know of to get the pricing from a page like that, if that's where you're storing it. You may have to include it in the user notification as either a conditional shortcode:

    Or you could store it in the form in a hidden field, the use conditional logic to determine which price to show in the user notification.

    Posted 11 years ago on Wednesday August 22, 2012 | Permalink
  8. Trevorbox

    Ok I think I understand don't have it quite working yet though. Getting error form can not be found on email. My code is like this :

    [gravityforms action="conditional" merge_tag="{Choose the (company name)Facility Closest to You:19}" condition="is" value="quote-oklahoma-city-ok"]

    merge tag is straight inserted should be right. Value is taken from the value of the selection in my forms area.

    Have content here.


    Says form not found in my email. Did i do something wrong?

    Posted 11 years ago on Wednesday August 22, 2012 | Permalink
  9. Getting error form can not be found on email.

    Can you post a screenshot or the text of where you are seeing this? I've not seen that error before. Thank you.

    Posted 11 years ago on Thursday August 23, 2012 | Permalink
  10. Trevorbox

    hey chris thanks for the reply. sent it to you via email.

    Posted 11 years ago on Thursday August 23, 2012 | Permalink
  11. The "Oops! We could not locate your form." error was due to this additional markup being added around the gravityforms shortcode in your admin notification:

    <code><code>[gravityforms action=</code><code>"conditional"</code> <code>merge_tag=</code><code>"{Choose the Cool Box Facility Closest to You:19}"</code> <code>condition=</code><code>"is"</code> <code>value=</code><code>"quote-oklahoma-city-ok"</code><code>]</code></code>

    Removing that got rid of the error. I emailed you regarding the rest. Thank you.

    Posted 11 years ago on Monday August 27, 2012 | Permalink
  12. The reason the conditional shortcodes were not working is because you were using the value (quote-oklahoma-city-ok), not the label (Oklahoma City, OK) in your comparison, but the merge tag is for the Label. Add :value to the merge tag and it will work fine:

    merge_tag="{Choose the Cool Box Facility Closest to You:19:value}"

    I copied form 2 on your site and created form 3. You can see this working there. You will need to do the same type of conditional in your notification for all other facilities.

    Posted 11 years ago on Tuesday August 28, 2012 | Permalink
  13. Hey! Thanks for this post! I was having the same problem. I couldn't understand when you said "value", if I was supposed to put the actual value of the selected option. Then I just tried the simple option "&GroupType={Group Travel Type:5:value}".

    Thanks again...

    Posted 11 years ago on Friday August 31, 2012 | Permalink