Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
18.12.06
-
None
-
None
-
Issue can be seen by running trunk locally with demo data installed:
./gradlew loadAll
Screen to add an item to a customer request can be seen here - https://localhost:8443/ordermgr/control/requestitem?custRequestId=9000
Description
Issue can be shown with demo data loaded.
To add a new item to a customer request, the user will visit the following screen with custRequestId query argument set accordingly:
https://localhost:8443/ordermgr/control/requestitem?custRequestId=9000
While editing the field values on this screen, a menu is visible showing the following actions:
- Edit
- New Item
- Create Quote from request
If the user clicks on one of these buttons they will lose the changes they have entered into the request item fields.
A few possible changes should be made to this screen to prevent data loss:
- Hide the action menu when editing a request item. User should be presented with the Submit button and a cancel link.
- Detect when changes have been made to an edit form (i.e. when the form is dirty) and get confirmation from the user when they attempt to navigate away from the page.
This pattern of usage probably applies in lots of other areas, too.
Possible implementation for detecting dirty forms and requesting confirmation from user - https://www.jqueryscript.net/form/alert-form-changed-dirty.html