- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hello Mukesh
There is something called LIST control, you script in there as per requirement
Step 1: Go to Application Navigator(Type in sys_ui_list_control.LIST refer screenshot 1)or you got List Control on the incident form itself.
Step2: enter the script in the omit new condition and save.
Please Mark Helpful if it helps you!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
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
Monday
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hello Mukesh
There is something called LIST control, you script in there as per requirement
Step 1: Go to Application Navigator(Type in sys_ui_list_control.LIST refer screenshot 1)or you got List Control on the incident form itself.
Step2: enter the script in the omit new condition and save.
Please Mark Helpful if it helps you!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
Thanks this worked