Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

set field readonly using dictionary attribute

marrik
Tera Contributor

I'm trying to make a field read-only using the dictionary attribute in ServiceNow

I set the attribute read_only=true for the field in the dictionary entry
still not working 
I even tried deactivating existing UI Policies, but still the field is editable on the form.

marrik_0-1754566590530.png

 

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @marrik 

Just make true here:

 

DrAtulGLNG_0-1754574755950.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]

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

my requirement is to set readonly through attributes not with readonly check box

Hi @marrik 

 

why through attributes but not the check Box? 

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

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Viraj Hudlikar
Tera Sage
Tera Sage

@marrik 

 

Why not just check the checkbox named Readonly which will make field non-editable.

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.