We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to make dot walked field read only?

KS86
Tera Contributor

I have dot walked X field from Y table. Written UI policy to make that read only , still editable on new forms(has to be read only). Tried with OnLoad Client Script. Still no luck. Please assist.

5 REPLIES 5

Tanushree Maiti
Tera Patron

Hi @KS86 

 

Check if any data policy is contradicting. 

If no , share your client script OR use below one

 

use an onLoad Client Script on the Form.
 
javascript
function onLoad() {
         g_form.setReadOnly('assigned_to.manager', true);  //update field as per your requirement
    
}

Also refer this KB: KB0687623 How to make all dot-walked fields read-only/writable on the form 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti