Control Visibility of Related List Action "New" button based on Form Data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 05:32 AM
I have a Related List and I am trying to restrict the visibility of the OOB "New" button, based on the form's status ("Draft" or "Rejected to Draft"). I have tried applying Data Conditions on the Create ACL for the table, but adding any Data Condition hides the "New" button completely. What is the proper method to hide the "New" button on the Related List so it only appears when form's status is "Draft" or "Rejected to Draft"?
NOTE: This is within a Scoped Application.
Screenshot:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 05:39 AM
Best is via list control
https://www.servicenow.com/community/developer-forum/hide-related-list-ui-action/m-p/2591454
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 06:01 AM
Please check below link
If my response helped please mark it correct and close the thread so that it benefits future readers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 06:02 AM
can you share the complete screenshot?
that New button you are showing is on list on some portal?
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
04-07-2025 06:05 AM - edited 04-08-2025 10:37 AM
Hello @Matt Cordero1 ,
Step 1: right click on the header of the related list table, then select Configure > List Control
Step 2: in the "Omit new condition" field add the condition for hiding the New button, using the "parent" object to refer to the attributes of the record shown on the current form.
For example:
answer = (parent.status == 'draft' || parent.status == 'rejected_to_draft');
Regards,
Robert