A form cannot be redirected immediately based on a field updated in a form submission. This is because it takes time for the information to be sent to HubSpot, propogate on the contact record, and then inform which page the contact sees. All of this takes longer than the url redirecting from the form to the next page.
With that said, if you can create a buffer page that a contact visits before arriving at the next page, that is one workaround.
If you can share a little bit more about your end goal, the Community can assist.
A form cannot be redirected immediately based on a field updated in a form submission. This is because it takes time for the information to be sent to HubSpot, propogate on the contact record, and then inform which page the contact sees. All of this takes longer than the url redirecting from the form to the next page.
With that said, if you can create a buffer page that a contact visits before arriving at the next page, that is one workaround.
If you can share a little bit more about your end goal, the Community can assist.
You would need to direct the form submission to a thank you page on your website, and then from there the traffic can be directed to another page (through a CTA or link).
Great news, @michelegarcia! Would you mind sharing how you got it to work, please? Basically, I'm trying to use a single form to gate multiple assets and pass which asset the user signed up for through a parameter. (If there's a better way to do this, please feel free to point me in the right direction!) Thank you!
Could you share how you accomplished this? I am trying to do the same thing without a buffer page. It's a redirect to an external white-label service, depending on which field they pick in a dropdown.
The redirect url is set based on the redirectURL parameter in the form script when the form is loaded. However, all the form parameters are placed in a hidden field called hs_context that's submitted along with the form. I haven't tested this, but you could problably use javascript to manipulate the redirectURL parameter in the hs_context field based on your field value options. Just a thought if you've have a developer on your team.