The CreatorCon Call for Content is officially open! Get started here.

How to make the list view fields readonly when change request is in Closed or cancelled state

msc
Tera Contributor

Hi everyone,

 

i have a requirement that How to make the list view fields readonly when change request is in Closed or cancelled state.

only admins can edit the fields and itil users dont have access to edit it.

1 ACCEPTED SOLUTION

Hi @msc 

 

if you done with ACL , I will say that good. 

 

For client script , Please check any OOTB Oncell edit script and you will get idea. Sorry I am a coder / pro , so cant give you any sample.

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

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

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @msc 

 

You cant make read only but you can add validation

 create client script Oncelledit and there add condition of Role and then you can do it.

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

 

Thank for you reply , i have tried with Acl like table.* acl and type is LIST edit.  

on role section used admin role and in advance condition again i'm checing the admin role and if its true and i'm giving access . 

 

Could you please share me the oncelledit script, i can try with the smae.

Hi @msc 

 

if you done with ACL , I will say that good. 

 

For client script , Please check any OOTB Oncell edit script and you will get idea. Sorry I am a coder / pro , so cant give you any sample.

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

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