Can we hide action button using UI policies ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 03:52 AM
Hi Team ,
Am trying to make read only priority , short description fields and hide Assign to me button in case form when state is in progress .
So am trying to use UI policies ,I can make read only priority & short description ,but unable to hide the Assign to me button ,Please guide me best pratices

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 03:58 AM
Hi @String,
You can only use conditions, views, and roles with the UI Actions configuration to hide UI Actions. It's not possible to do that with UI Policies or Client Scripts
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 03:59 AM
This is possible with DOM but that is not recommended by servicenow.
Dont apply any DOM manipulations in your instance as that get highlighted in instance scan and have the possibility of breaking in future releases.
UI actions have condition field to make then show/hide. I know you are trying to achieve that on client interation but that is not possible.
Please mark the answer correct/helpful accordingly.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 04:02 AM
Please modify the conditions for the "Assign to me" UI Action according to your requirement.
Hiding UI actions via UI policies is either not possible or definitely not recommended.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 04:30 AM
If it needs to be done before the record is submitted you can see an example of this OOB on the change_request table. After submission this should be controlled by the UI Action condition.