RITM & Catalog Task Variables Read Only

tylerThielman1
Tera Expert

Hello,

Currently trying to figure an issue out, any help would be appreciated.   Currently on RITM and Catalog Task all variables are being set to read only, with the exception of one.   I do not wish this to be the case, and I've checked the usual culprits, UI Policy, Client Script, Data Policies.   I've also done some digging to a lesser extent into the UI Macros, Script Includes, and ACLs.   I'm having a hard time figuring out what might be setting the variables to read only at this point.

Any help is greatly appreciated!

1 ACCEPTED SOLUTION

I ended up with a root cause and resolution to this issue.



The issue was not caused by UI Policy and unfortunately since this was occurring only on variables on the RITM and SC Task, the field watched was of no use.



The cause of the issue was the field "write_roles" had been added to the catalog item variable's availability section and the field had been populated with the role "nobody".   All new variables created defaulted to this, which resulted in the issue I experienced.



Hope this helps someone in the future.


View solution in original post

16 REPLIES 16

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Tyler,



Also check for the field "Read Roles" and "Write Roles" at the variable level.


Hello Pradeep,



I gave the Write Roles at Variable level but user is not able to update the field because of onLoad Client script.


Is there any way i can give write access to only few variables?


Dennis R
Tera Guru

Try using the field watcher.   In the console view, right-click on the field label and select Watch - [field].   Then right-click in the title bar and reload the form.   It should tell you any scripts or policies that are setting the field to ReadOnly.



Also be sure to check the Dictionary (right-click a field label and select Dictionary) to see if the field is read-only at a dictionary level.   Be sure to look at the overrides related list at the bottom of the dictionary page and see if there are any overrides applying to your table that are setting the fields to read-only also.



Hope this helps,


--Dennis R


ars1
Kilo Contributor

Hi,



I am facing the same issue. Variables are read-only on RITM level. Check Client Scripts, UI Policies, ACL's, Variable (Read and Write Roles). There is no code to make variables read-only. Even i tried creating UI policy on RITM level to make it editable, but it is not working.



Any idea as how to make it editable ?



Thanks


Ashish