BFuchs Posted August 2, 2020 Report Share Posted August 2, 2020 Hi, We are having users complaining they've submitted records and its not there... I'm suspecting they close the form without clicking on submit button. I'm looking for a way to present a message to users when trying to exit the screen w/o saving info. "You have unsaved data, closing this way will cause data not to get saved, please click on submit button" Any suggestions? Thanks Quote Link to comment Share on other sites More sharing options...
0 Nuke354 Posted August 2, 2020 Report Share Posted August 2, 2020 This will need Javascript customization to alert users when they leave an incomplete form. Here's stackoverflow discussions about it: https://stackoverflow.com/questions/11844256/alert-for-unsaved-changes-in-formhttps://stackoverflow.com/questions/7317273/warn-user-before-leaving-web-page-with-unsaved-changes Quote Link to comment Share on other sites More sharing options...
0 SinJunYoung Posted August 15, 2020 Report Share Posted August 15, 2020 On 8/2/2020 at 11:29 AM, BFuchs said: Hi, We are having users complaining they've submitted records and its not there... I'm suspecting they close the form without clicking on submit button. I'm looking for a way to present a message to users when trying to exit the screen w/o saving info. "You have unsaved data, closing this way will cause data not to get saved, please click on submit button" Any suggestions? Thanks What is the current view of your Submission form? It would be nice to make sure that there is a required to fill up by a user to prevent blank submissions. Quote Link to comment Share on other sites More sharing options...
0 astroboy Posted October 4, 2020 Report Share Posted October 4, 2020 Hello, I've stumbled upon these external articles that might be related to your inquiry. Here are the links: https://forum.yiiframework.com/t/how-to-set-alert-message-when-an-incomplete-filled-form-is-closed/73138/3 https://dev.to/chromiumdev/sure-you-want-to-leavebrowser-beforeunload-event-4eg5 I hope this helps. Cheers! Quote Link to comment Share on other sites More sharing options...
0 petercohen090 Posted October 5, 2020 Report Share Posted October 5, 2020 This is really a serious issue if anyone is facing this. Please fix this asap. Quote Link to comment Share on other sites More sharing options...
0 KongenAvKjelsaas Posted October 9, 2020 Report Share Posted October 9, 2020 I am Quote Link to comment Share on other sites More sharing options...
0 Flowers4Algernon Posted June 29 Report Share Posted June 29 Hello! Maybe this forum post could be somewhat helpful: Quote Link to comment Share on other sites More sharing options...
Question
BFuchs
Hi,
We are having users complaining they've submitted records and its not there...
I'm suspecting they close the form without clicking on submit button.
I'm looking for a way to present a message to users when trying to exit the screen w/o saving info.
"You have unsaved data, closing this way will cause data not to get saved, please click on submit button"
Any suggestions?
Thanks
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.