But when the user fills up the form, on submission, the page does not redirect to the URL which is added in the hubspot form.
Even the redirect code available on the community post does not work.
<script> hbspt.forms.create({ portalId: '#########', formId: 'form_id', inlineMessage: 'You are being redirected to the Application...', onFormSubmit: function($form){
setTimeout( function() { window.location.href = "https://carapacetechnologies.com/thank_you_LP";}, 500 ); // Redirects to url with query string data from form fields after 1/2 second.
} }); </script>
Can anyone please help with this.
I am sure its just a very small tweak, but because I am new to Hubspot, so not able to find the fix.