However. If I close the popup (via Bubble’s Hide) the HTML still thinks the form needs filling in, so if I then navigate away from the page using an internal link I get this Chrome popup.
Any way to blat out the HTML when the popup is closed so it doesn’t do this?
Yes the answers my friend, are coding in the wind
Try to relate to your Bubble knowledge of events and listener functions (workflows)
// naive approach, blows away the current stack of listeners
// Test that it doesn't impact the rest of the page including
// reopening the popup, submitting the form, etc.
window.onbeforeunload = null;
Or if you need this …
// keep a copy of the listener before clearing it
window.mySavedBeforeUnloadListener = window.onbeforeunload;
// blow away the listeners
window.onbeforeunload = null;
// when/if the previous listener needs to be put back
// for example on popup show
window.onbeforeunload = window.mySavedBeforeUnloadListener;