how to hide New button on related list for particular roles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 09:20 AM
i need to hide new button on related list for manager and employee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 09:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 10:12 AM
@Bert_c1 not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 09:44 AM
Reposting the links:
https://docs.servicenow.com/bundle/tokyo-it-service-management/page/product/change-management/task/t_CreateNewUIAction.html
https://[your_instance].service-now.com/sys_ui_action_list.do?sysparm_query=name%3DNew%5Elist_action%3Dtrue&sysparm_view=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 10:29 AM
Hi,
I would suggest you don't alter anything in the OOB New button but you override it and create a new one for yourself
Then you can add the condition on this new button as needed to show hide base don roles or fields on the record.
To check whether the table is being used as a related list you can use this condition -> RP.isRelatedList()