- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2018 11:06 PM
Hi
We have a number of Buttons (UI Actions) on our Incident form. The three I will be referring to in this question are 'Close Incident', 'Assign to me' and 'Save & Stay'. The problem I'm having is that when clicking on 'Close Incident' the 'State' field is set to Closed and it closes the ticket if all mandatory fields have been completed. If all mandatory fields haven't been completed a message pops up to request the fields to be completed (state is already set to closed but not saved), if all mandatory fields are not completed and the user clicks 'Save & Stay' the warning pops up again that required fields are to be completed this is the expected behaviour. In the same case where a user clicked 'Close Incident' and all mandatory fields have not been completed, they get the same warning. Now if the user decides they want to first 'Assign to me' before completing the mandatory fields the record gets updated without warning about the mandatory fields that haven't been completed and then saves the record as closed assigned to that user but still with required fields that are blank.
From what I can gather is that the checking of mandatory fields happens in current.update() function. All three UI Actions use current.update() but I can't figure out why current.update() on the 'Assign to me' UI Action doesn't check mandatory fields. Below are the three UI Actions:
Close Incident
Save & Stay:
Assign to me:
Any help as to what I'm missing here would be greatly appreciated.
Thanks.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2018 11:51 PM
Hello,
The check for the mandatory fields is not done in the 'Assign to me' ui action, because the action name is set to 'sysverb_cancel'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2018 11:51 PM
Hello,
The check for the mandatory fields is not done in the 'Assign to me' ui action, because the action name is set to 'sysverb_cancel'.