josh10
January 28, 2019, 5:37pm
1
Hello! I have a specific form that I want to make sure users don’t accidentally leave due to an accidental click of the back button or Swipe on the trackpad. Could someone help me with understanding how to do this?
You can do that with Javascript alert
1 Like
josh10
January 28, 2019, 6:41pm
3
Thanks Codeables! Do you have any links to tutorials that might help with that?
I’m not sure how to implement that in Bubble. Thought I’d give you a head start.
luke2
January 28, 2019, 7:06pm
5
There is a plugin that I think might be worth checking out - I haven’t had a chance to test, but sounds like its up to the job:
Or combine some JS with the Toolbox plugin and you can run a custom event
dan1
January 28, 2019, 7:50pm
6
Echoing @luke2 , the plugin has been chatted about in a few places on the forum. Should be enough in these threads to get you started.
Hey, just released a new plugin. Pretty simple thing that lets you fire an event when the user is about to leave the page, so you can display a popup or whatever. It’s based on Bounceback .
Has three modes:
Mouse: This detects bounces based on the mouse’s direction, velocity and distance from the top of the page.
History: This method uses the HTML5 History APIs (or hashes when in an older browser) to duplicate the page in the history. Then when the visitor clicks to go back, the Exit Intent fi…
This would also be a good candidate for building an element plugin in javascript. If anyone is interested in learning to build bubble plugins, I think this one would be pretty easy to start with. I’m imagining an invisible element with two dynamic properties, “block the user from leaving?”, and “message”.
Instructions on how to do it in javascript are here: https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload
And instructions on how to build plugins in Bubble a…
1 Like