Restrict the new button and edit in the related list of Change Request on incident form for ITILUser

Abhilasha G T
Tera Contributor

Hi Team,

 

In the incident form , there is a related list called Change Request, in that I need to hide the Edit and  NEW button for only  itil user how to do that.

AbhilashaGT_0-1741256490765.png

 

2 ACCEPTED SOLUTIONS

Ahmmed Ali
Mega Sage

Hello @Abhilasha G T 

 

You can configure script to show/hide the buttons in list control. To access list control, right click on related list header (example number of short description in your screenshot above) then configure and click list control.

 

AhmmedAli_0-1741258070049.png

 

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@Abhilasha G T 

you can either Use New or Edit roles field present on List control or control it via script as mentioned by @Ahmmed Ali 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Rohit  Singh
Mega Sage

Hi @Abhilasha G T ,

 

Put your cursor in the column of your related list and then right click. Got List control. 

 

From List control check Omit Edit and New check box.

 

If my response helped, please mark it helpful and accept the solution so that it benefits future readers.

 

Regards,
Rohit

 

 

Hi @Abhilasha G T ,

 

Refer below Snip. In List control form uncheck Omit Edit and Omit New. In Role add "ITIL"

RohitSingh_0-1741259402445.png

 

 

RohitSingh_1-1741258227682.png

RohitSingh_2-1741258266483.png

 

If my response helped, please mark it helpful and accept the solution so that it benefits future readers.

 

Regards,
Rohit

Hi @Abhilasha G T ,

 

Did you checked my response. I believe you want ITIL users to have the edit and new option.

 

If my response helped, please mark it helpful and accept the solution so that it benefits future readers.

 

Regards,
Rohit

hi Rohit,

 

I tried like this, i  have added a script like gs.hasRole('itil'); in the omit new condition and omit edit condition. its working fine.

 

Thank you all for your response.

its working fine