Make entire domain read-only

steveturley
Tera Guru

Hi, I have a requirement to make an entire domain read-only. 

 

I believe the best way to achieve this would be using a client script, and I think I have the script to make the fields read-only. 

 

Could anyone advise on the syntax I'd need to make this only for one specific domain?

 

Thanks!

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @steveturley 

 

Are you referring to Domain Separation here?

 

Not sure, but you can use UI policy to make fields read only.

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

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

Yes, it's a domain-separated instance. Is there an easy way to make all parts of a single domain read-only via a UI policy?

Hi @steveturley 

 

May I know what is the use case of tis? By making domain and also domain is very big term, under domain what you want to read only ?

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

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

shubhamdubey
Mega Sage

@steveturley 

 

For making entire field readonly with the help of client script .

 

function onLoad() {
   
var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
    g_form.setReadOnly(fields[x], true);
}
}