Ability to redirect to multiple thank you page based on form response
On a form, there is a field with two different responses, which helps to determine the ideal customer. It is very important to have the feature to redirect a visitor to separate thank you pages based on the response. To B2B customers, we sell our products directly but to B2C customers, we redirect them to e-commerce channels (such as eBay or Amazon). In this case, both the types of customers are important. We can use one landing page and form to target both types of audiences to promote the product but redirect them to the relevant offer/content based on the response.
Wanted to pile on here and say that our team would love a feature similair to this. The ability to display a different meeting link based on the values in a form submission. We use a third party to do this now and are running into a lot of issues because of this.
Posting on behalf of two separate individuals requesting for this feature! Being able to redirect based on various form responses would be a tremendous benefit to personalising experiences for leads. Additionally, would be great to have personalisation tokens possible on the thank you page.
I'm having an issue trying to get my form to redirect based on the embed examples, here's what I have:
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script>
<script>
hbspt.forms.create({
region: "na1",
portalId: "XXXXXXXX",
formId: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
onFormSubmit: function($form) {
var choice = $('input[name="accredited_investor"]:checked').val();
if (choice == 'Yes I qualify as an accredited investor') {
window.location = 'https://www.wefunder.com/atakama/invest?amount=10000';
} if (choice == 'No I do not qualify as an accredited investor'){
window.location = 'https://invest.atakama.com/sorry';
}
}
});
</script>
Seems a simple change for HubSpot to implement that results in a huge benefit for customers (as indicated by the number of comments and upvotes).
Indeed, HubSpot themselves actually implements this idea on their own home page (I assume through the custom embed code that other people have shared). If you go to their book a demo form and select company size = 1, you get one thank you page, whereas if you select company size = 10000+ and you get a different thank you page.
Can we please get this functionality implemented for users without the need to loop in developers?
This is very much needed. As a solutions partner and user, this would be huge. @Shay do you have an update on this by chance? If/Then logic is throughout Hubspot. We now need it in form redirects.
We need to mainly qualify people before they fill out the entire form.
If they answer No, then we'd like to end the form, as they are not eligible and there is no need to complete the form. We would like to redirect them to a thank you landing page with some basic FAQs to come back when they meet the requirements.
If they answer yes, then they can continue with the form.
I was trying to do something similar. A vendor gave me the code at the front of this thread but it did not work. The browser did not like the "onFormSubmit" event.
I used that to create code below. It removes the logic from the JS that writes the form on the page, thus eliminating the "onFormSubmit" issue. I also replaced "$" with "jQuery" to avoid JS or jquery version conflicts (it's a WordPress site where multiple versions of jQuery are loaded). Thankfully, this worked. Problem solved for me.
Hope to have a calendar routing option as well - 1 meeting link and conditional calendars that will depend on booking info, for example, If the country is set to US, then use the US office calendar.
I looked throught the responses here and couldn't find exactly what I was looking for, so pardon the inquiry if this is the wrong place...
I'd like to build one HS form that, depending on the page or post the form is interacted with, will provide a unique PDF download link. I would also like for the user to only have to complete the form once, e.g. form submitted on Page A to access the download for Page A, and then be able to access the download for Page B without resubmitting the same form on Page B—preferably with the ability to track the downloads to the contact created by the initial form submission.
Off the top of my head, I don’t know of a way to bypass the form if you’re gating a download. I’ll be interested If someone has a solution because, what we do is have a download confirmation email automatically sent using a workflow when a contact submits a gated form. The download confirmation has the direct link in the message, so they can use it to bypass the form next time. They have to remember to go back to the email or save the URL somewhere to access later, so this method isn’t full proof.
Any updates here? We use Typeform for forms where we need to dynamically route users to landing pages based on form submissions now, but would love to retire that in favor of just using native HubSpot features.
I’m Ian, the Product Manager for HubSpot’s Forms tool.
Thank you all for taking the time to submit, upvote, and comment on this Idea. We hear you loud and clear, and we agree that this functionality is important. We are currently evaluating how our team will implement this idea. If you're interested in participating in user testing, just reply to this thread.
Any news about this feature request will be relayed on this thread, so stay tuned!