how to hide New button on related list for particular roles

siva58
Tera Contributor

i need to hide new button on  related list for manager and employee.

 

siva58_0-1667319638129.png

 

11 REPLIES 11

siva58
Tera Contributor

@Bert_c1  not working 

Bert_c1
Kilo Patron

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=

Anurag Tripathi
Mega Patron
Mega Patron

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 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0686189#:~:text=Complete%20th....

 

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()

 

-Anurag