Is it possible, through Wix Code, to have a lightbox open when the user leaves a page? Essentially, I want the lightbox to say if the user wants to save the form as a draft or discard the draft and then continue to where the user clicked.
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
Hi,
You can open a lighbox using the openLightbox function. However, note that you need to call this function for each "leaving a page" scenario (clicking on a certain button for example).
Good luck,
Tal.