Show a warning if user tries to close, reload or navigate somewhere else
Unanswered
Naeem posted this in #help-forum
![Avatar](https://cdn.discordapp.com/avatars/782907171721314315/f12dbf59c106906ffdbd69d878add96b.webp?size=256)
NaeemOP
Hi, guys I have a page where the user needs to click on the save button before leaving to save data in DB, I was wondering if there's any way we can put some kind of warning like we get when leaving or reloading a form. I just need to show user a warning if they try to close the tab/ reload the page or try to navigate somewhere else
3 Replies
![Avatar](https://cdn.discordapp.com/avatars/782907171721314315/f12dbf59c106906ffdbd69d878add96b.webp?size=256)
NaeemOP
![Image](https://cdn.discordapp.com/attachments/1204747014135615548/1205109712824041522/image.png?ex=65d72ce1&is=65c4b7e1&hm=66b07b9fc19f5bb051d745b61a88dff25ed35f8dfab750521c3d5ad86b3c4d67&)
a warning like this