-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
4.5.0
-
-
MOODLE_405_STABLE
-
Moodle Apps - 2025 i1
Hi!
When you leave a form that has content (for example a post in a forum with content on the subject and/or the message), if you leave that page (because you return to a previous page, on a tablet you decide to switch users, ...) there is a warning message letting the user know that they are going to lose the content they introduced.
Currently the message is 'Are you sure you want to leave this page? All changes will be lost' ($string['core.confirmcanceledit']). And the buttons are Cancel | OK
There are two things I think should be revised:
- Regarding the message itself .. I am unsure if it could be confusing for the end user if they wrote and saved one message and it is in the middle of the second, if they go back, could they interpret that they will lose not only the second message (the not saved one) but the first message they wrote?
There is another option $string['core.confirmleaveunknownchanges'] = 'Are you sure you want to leave this page? If you have unsaved changes they will be lost'
I'd prefer a mix of the two All unsaved changes will be lost, but as far as I know these are the two only strings available - Confirm button should be red to alert the user of a big change
dpalou mentioned that it was a bad idea to have a red OK, so I am suggesting changing it to something different.
I'd like a 'Leave' but I don't see the string, so maybe a 'Delete'?
A example of a different warning message:
Thank you for your time!!
- Discovered while testing
-
MOBILE-4028 Improve UX of logout when there is a form active (tablet only)
- Tested