UI action 'New' on incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
How can I hide the "New" UI Action on a related list based on the parent record's state?
On the Incident form, we have a related list showing Child Incidents. This related list includes a "New" UI Action (button). I want to hide this "New" button whenever the parent Incident is in the On Hold state. What's the best way to achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi @MukeshRK ,
I tried your problem in my PDI and it works for me, please check below solution
Right click on any column of child incident related list and select list layout
Add this one liner script and it will work
and now check the related list for this
Same for Incident 9009 state is New now check the related list
Please mark my answer correct and helpful if this works for you
Thanks and Regards,
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi @MukeshRK
- Open the parent Incident form.
- Scroll down to the Child Incidents related list.
- Right-click the header of the related list and select Configure > List Control.
- Under the List Control form, check the box for Omit new button.
- In the Omit new condition script field that appears, add the following script: answer = (parent.state == 3); //update with correct state
- Click on update.
Refer: https://www.youtube.com/watch?v=3V6lszRGof4
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti