client script-set read only

yardenKrispel
Tera Contributor

 

Hi, I need to make a client script that will make the state button read only even on the fly. A new incident that I open will directly be read only and also when there is an incident form in the system and I want to change the status, so I can't. please me give client script

 

17 REPLIES 17

its not work 

yardenKrispel_0-1700746050560.png

 

Mohan raj
Mega Sage

Hi @yardenKrispel,

 

I'm having difficulty understanding your question. Could you please provide more details so I can better grasp the requirement?

I need this button state to be read only both in a new incident that I open and in an existing incident, which means that this button will always be in read only mode, 

yardenKrispel_0-1700745909061.png

 

Hi @yardenKrispel,

 

To make the State field read only on both New incident form and existing incident record, Instead of using Client script try to make read only in Dictionary entries

 

Right Click on the State field >> Configure Dictionary 

Mohanraj_0-1700746184959.png

 

 

Mohanraj_1-1700746208689.png

 

Mark true Read only checkbox in the form to make state field read only always

 

If my response helps you to resolve the issue close the question by Accepting solution and hit thumb icon. From Correct answers others will get benefited in future.

 

Hi @yardenKrispel 

 

Write a UI Policy

Active = True or False

UI Action

State = Read Only

 

or 

Change ihere

LearnNGrowAtul_0-1700746627008.png

 

 

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

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