Affects Version/s: 7.3.X, 7.3.10 DXP GA1, Master
Steps to Reproduce:
- Create a new App Builder Object called "Employee Review".
- Add a form view called "Name" with one field: "Name".
- Create a second form view called "Manager Comments" with one field: "Manager Comments".
- Create a table view called "Reviews" that lists out the "Name" field.
- Create a new Regular Role: "Manager".
- Create a new Workflow Powered App with the "Employee Review" object.
- For the "Start" step select the "Name" Form View and the "Reviews" table.
- For step 1 select the "Manager" role as the assignee. For the form views set the "Name" form view as read-only and the "Manager Comments" form view as editable.
- Save and Publish as both a Widget and a Product Menu App.
- On a page, add the Name form view.
- Add an entry by submitting the Name form view.
- Make sure you are logged in as an Administrator that does not have the "Manager" role.
- Navigate to the Product Menu App. You should see a new submission.
- From the ellipsis menu of the new entry, check to see if you have access to the "Edit" menu item.
- From the ellipsis menu of the new entry, navigate to the "View" entry page.
- Verify if you have the Edit button in the top right of the toolbar. (It has a pencil icon).
- Click to edit the entry.
- Verify that when editing the entry, that you are able to input text in the "Manager Comments" field, that the "Submit" button is not present, nor is the "Assign" button present.
- "Edit" option should only be available for the user that has the entry assigned to itself
- If an entry is assigned to a role or to another user, the "Edit" option should not be available
- "Edit" option is displayed to any user
NOTE: Allowing users with the manager role to edit an entry, but who are not currently assigned the entry, creates much ambiguity for the user. They are provided a page that lets them edit, but with no ability to submit their changes. In order to submit, they will have to assign the entry to themselves, which will require a refresh of the page. This will cause them to lose any changes they have made. The best way to remove this poor experience is to remove the option for users to edit the entry until the entry is assigned to them. By removing the "Edit" option at this stage, the "Assign" option will receive more prominence and naturally direct users to this path.