- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 03:53 AM
Hi,
For the Update button in the incident form, I want a task to be done. When the state of the incident record is New, In progress, On hold, Resolved the update button should be visible. For the closed and cancelled state, it has to be hidden. How it can be done? I want this to be implemented in both native view and SOW?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 04:51 AM
there is already OOB incident.None WRITE ACL that allows write if INC is not closed
You can create a new table.None WRITE ACL with condition as State NOT IN Cancelled
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 06:54 AM
I apologize for the confusion, Nisha. A better way to access these UI Actions and their settings is by navigating to System Definition -> Tables -> Incident. Once in the table's file, use the header menu and navigate to Configure -> UI Actions. Every UI action you're hoping to edit will be in this list. The twist is that some of these Actions are pulled from other tables, such as [sys_db_object].
This is why @Ankur Bawiskar is suggesting an edit to ACL's instead, as editing these buttons will affect other tables that utilize them.
A more complicated solution would be to create new UI actions on the Incident table specifically, giving them the same properties as the ones currently used and implementing the visibility script discussed earlier. After creating these new buttons, you could disable the buttons pulled from other tables so that they are unaffected by your changes.
Best practices aside, implement the solution that best fits your situation. Just be aware of potential unwanted side effects, and take advantage of the 'Revert to Previous Version' function liberally.
Did this answer your question?
If I've at all helped, please return the favor by clicking the thumb next to my post. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 04:51 AM
there is already OOB incident.None WRITE ACL that allows write if INC is not closed
You can create a new table.None WRITE ACL with condition as State NOT IN Cancelled
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 07:18 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 05:34 AM
Hi Nisha. If I'm understanding this correctly, you're hoping to change the visibility of a UI action based on the record's state. First, you'll need to identify the integer value for the relevant states.
For instance, out of the box, the incident table's states are as follows:
New = 1
In Progress = 2
On Hold = 3
Resolved = 6
Closed = 7
Canceled = 8
(These can be viewed by navigating to any incident, right clicking the 'state' field, and viewing its dictionary record. In the related list module at the bottom, sort by 'table' incident, and there you go.)
Here we also have a related list, called Dictionary Entry Overrides. Navigate to the override for the incident table and you'll see this screen.
We're almost to your solution now. Let's navigate to System UI -> UI Actions. Sort by table 'incident', then find your 'Update' UI Action. Then add this setting
Because the dictionary override has associated the states 7 & 8 with 'closed', our script reads for 'closed' states, then adjusts the visibility of the UI action accordingly.
If this helps, please let me know!
If I've at all helped, please return the favor by clicking the thumb next to my post. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 11:46 PM
I couldn't find any UI Action for Update button. Similarly for Save button also.