
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2023 04:08 AM
In one of a catalog variables which is a simple string type, both Read Only and Mandatory has become checked and I am not able to uncheck any of these as they have become readonly. Other variables are editable except this one in the whole instance. Could you please help me out with this.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2023 04:40 AM
You can also try to update the two values using fix script , you can query the table "item_option_new" in this all the variables are mentioned against your catalog item and you can update the values of "Mandatory" and "Read Only" fields.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2023 05:06 AM - edited ‎09-27-2023 05:51 AM
Thank you Anubhav,
I ran the below fixscript and saw this was fixed.
var test = new GlideRecord("item_option_new");
test.addQuery("sys_id", "f2ecd50987e5791094f463d83cbb35cd");
test.query();
if(test.next()){
test.setValue("mandatory", false);
test.setValue("read_only", true);
test.update();
}
However i am still not able to investigate why this issue happened for one variable.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2023 04:34 AM
@Amrit4 Please check if there is any Write ACL/UI Policy or a client script working on this form which is preventing you from updating this field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2023 04:40 AM - edited ‎09-27-2023 04:40 AM
Hi Sandeep,
Thanks for your prompt reply.
There is no ACL/UI policy working to restrict it any where. Other variables of same type are editable on the same instance. Even other same type of variables on the same catalogs can be checked and unchecked. only this particular variable has the mandatory and readonly both checked and grayed out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2023 04:35 AM
Hello,
Please try the below method to check what is making those fields read-only:-
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0783470
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2023 04:40 AM
You can also try to update the two values using fix script , you can query the table "item_option_new" in this all the variables are mentioned against your catalog item and you can update the values of "Mandatory" and "Read Only" fields.