I’m trying to configure a HubSpot form to redirect to a URL if the “I’m a current customer” field is checked. I also want the same form to redirect to a different URL if the field is unchecked.
How would I make the redirectURL into a conditional statement based on whether or not a box is checked?
Example:
If
I’m a current customer [is checked]
Then
Redirect to ‘google.com’
Else If
I’m a current customer [is NOT checked]
Redirect to ‘thank-you-page’
This is what I tried but unfortunately did not yield results.
Hello again! I was wondering if this code snippet still works for you? I created a second landing page and used this code template to make a new redirect on submit when a box is checked. However, it is not redirecting. So I tried this out on the original LP and noticed that it no longer redirects when the check box is checked. Is anyone available to try this code out and/or help me debug? Thanks!