Hide the ‘New’ button for related lists when the HR case state is ‘Closed Complete’
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
State is "Closed Complete"
Allegation " NEW " Button
Interview " New "Button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi
Navigate to Now experience framework-> Related list actions
Open below 2 action assignments sysid = a5c1ccc2eb9f1110afa96bf3a2522864 , 5555b77273131010a0a79329faf6a780
and update the script condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
@Shruti In the script condition, what do I need? My requirement is: when the HR case is ‘Closed Complete’, users should be unable Create New any records in the related lists We need to hide New Button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Update script condition parent.active==true for both declarative action assignments. New button will not be visible if state is closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You can handle this by updating Table level CREATE ACL on those Related list tables
in that check the Parent State [IS NOT] Closed Complete
This will ensure the ACL passes only when HR Case is Not Closed and it will block the NEW in both Native + Workspace in related list
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader