Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4724

Revise warning message when you leave a form that has content (Follow-up MOBILE-4028)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5.0
    • Others
    • Hide

      This issue only needs to be tested in 1 device.

      1. Go to a page with an edit form. E.g. create a calendar event, create a forum discussion, edit an assignment submission, etc.
      2. Enter some data.
      3. Click to leave the page without saving. You should see a modal with title "Leave page?", message "Unsaved changes will be lost." and the confirm button says "Leave".
      Show
      This issue only needs to be tested in 1 device. Go to a page with an edit form. E.g. create a calendar event, create a forum discussion, edit an assignment submission, etc. Enter some data. Click to leave the page without saving. You should see a modal with title "Leave page?", message "Unsaved changes will be lost." and the confirm button says "Leave".
    • 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!!

            dpalou Dani Palou
            isabelrenedo Isabel Renedo Rouco
            Pau Ferrer Pau Ferrer
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 44 minutes
                44m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.