Issue was that the setState for formSubmitted actually made React to unmount the form. So the rest of the callback were erroring I guess and executio...read more
I accidentally found a way. If you "unmount" your form in the "onFormSubmit", further events like "onFormSubmitted" will not be executed, as the form...read more
Setting the onFormSubmit callback, prevents 1) Redirection, if configured in Hubspot 2) Following events, like onFormSubmitted I tried multiple times, I tried returning true, etc. onFormSubmit : (form: any ) => { setFormSubmit read more
I'm looking for a solution to the same problem. We don't want to keep passing the UTM params around, but store them in session storage and make hubs...read more
Setting the onFormSubmit callback, prevents 1) Redirection, if configured in Hubspot 2) Following events, like onFormSubmitted I tried multiple times, I tried returning true, etc. onFormSubmit : (form: any ) => { setFormSubmit read more