[ 
https://issues.apache.org/jira/browse/OFBIZ-12510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17480194#comment-17480194
 ] 

Pierre Smits commented on OFBIZ-12510:
--------------------------------------

Hi Daniel,

As I see it, we have 100s of screens including an edit Form where this pattern 
could be applied. And on top of that all the grids were we enabled changing 
data on rows.

 

> Action buttons should be hidden while creating a new item for a customer 
> request
> --------------------------------------------------------------------------------
>
>                 Key: OFBIZ-12510
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12510
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework/widget
>    Affects Versions: 18.12.06
>         Environment: 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
>            Reporter: Daniel Watford
>            Priority: Minor
>
> 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



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to