I’ve been working on some advanced usage of HubSpot embedded forms and ran into a major hurdle I was hoping your team could shed some light on.
With a combination of the onFormSubmit and inlineMessage options we were able to chain multiple HubSpot forms together without requiring a page reload for the best user experience possible.
We have it working great - until we test on any iOS device. When a form is submitted on iOS and is using the inlineMessage instead of a redirectUrl the page reloads as if it were using the current pages URL for the redirect location.
I can see from inspecting the source code inside the forms library that you are doing this intentionally - but may I ask why?
I was able to stop the action from happening by removing the redirectUrl property value inside the ctx object using the onBeforeFormReady callback which seemed to work but the submission never makes its way into HubSpots contacts DB.
If there is a way to make this work without requiring a page refresh we could build some really unique and powerful multi-step forms with workflows behind them if someone were to not finish the entire process etc…