How to hide New button on Attached Knowledge Related list for change request only for itil role user

vinnila
Tera Contributor

Hi All,

I want to hide New button on change request form - Attached Knowledge related list only for itil users.

If we hide new button , both edit and new buttons are not getting visible.

Please suggest steps to implement this.

 

 

Thanks and Regards,

Vineela

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @vinnila 

 

did you try list controls

 

AGLearnNGrow_0-1716281787999.png

 

 

Please provide the screenshot as well.

*************************************************************************************************************
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]

****************************************************************************************************************

Hi @Dr Atul G- LNG ,

yes tried. for "edit roles" given as "itil , change manager" and for "new roles" given as "admin" . to make sure new button is not visible for itil while testing. but it is not working.

 

Vineela1_0-1716282535946.png

 

Opps... did you try with script @Jitendra Diwak1 

*************************************************************************************************************
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]

****************************************************************************************************************

Jitendra Diwak1
Kilo Sage

Hi @vinnila,

 

Could you please try this code in "Omit edit condition" field below:

gs.hasRole('itil') || gs.hasRole('change_manager');
 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Thanks

Jitendra

Please accept my solution if it works for and thumps up.