- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2022 03:51 PM
I have created a new Case Type extended from Case. I want to hide some (or a lot) of the UI Action Buttons on the new case type form within Agent Workspace (i.e. Create Work Order, Create Problem, etc). How can I hide these on just my new Case form and not on the OOB Case form?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2022 05:08 AM
HI
The best option to use here is "conditions" in the UI action to appear to meet your requirement.
Conditions that must be satisfied for the UI Action to appear, for example, current.isValidRecord() && current.canDelete()
.
Learn from this doc :https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/workspace/task/configure...
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2022 07:15 PM
what condition you have right now in your ui action ? are you saying comparing the class name isnt working ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2022 05:08 AM
HI
The best option to use here is "conditions" in the UI action to appear to meet your requirement.
Conditions that must be satisfied for the UI Action to appear, for example, current.isValidRecord() && current.canDelete()
.
Learn from this doc :https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/workspace/task/configure...
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2022 09:14 AM
Looks like when you say extended from Case have you created another custom Table extending from Case Table?
If that is the case then you need to update the Condition field of the UI Actions as below:
Existing Condition && current.sys_class_name!='Enter the name of the Table here'
If Case Type is a Field then update the UI Action as below:
Existing Condition && current.FIELD_NAME!='Enter the value for which you want to hide'
Make sure you give these in the Condition field of the UI Action which you want to hide.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke