How to restrict the 'Add' and 'New' buttons on the incident related list on major problem for itil

Vallam Pushpend
Tera Contributor

How to restrict the 'Add' and 'New' buttons on the incident related list on major problem for itil users and only major problem manager can see the buttons

1 ACCEPTED SOLUTION

Hi,

You need to use Omit new Condition field to add scripted condition to hide new button. This field may not be available on form, please add it and make changes as given below.

You can use role based or group based conditions as per your requirement and configurations.

AnilLande_0-1669099195160.png

 

To hide 'Add' button you need to modify UI action condition and check user roles/groups in condition script.

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

7 REPLIES 7

Anil Lande
Kilo Patron

Hi,

You can use List control on related list and add conditions for the Edit and New Button.

https://www.servicenow.com/community/developer-forum/how-to-omit-a-new-button-by-setting-condition-s...

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0785078

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

There are two Ui Action scripts for 'Add' and 'New'. In that how to give conditions for restricting the access to itil users

Voona Rohila
Kilo Patron
Kilo Patron

Hi vallam

Navigate to the related list and open List control

uncheck omit new button checkbox and you will see a field to add roles in right side, add the appropriate roles and save it.

 

RohilaVoona1_0-1669098191614.png

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

I have tried already but that conditions are not working properly