Read Only and Mandatory both has become active, don't know why/how

Amrit4
Tera Guru

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.

 

Amrit4_0-1695812888732.png

 

2 ACCEPTED SOLUTIONS

Anubhav24
Mega Sage
Mega Sage

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.

View solution in original post

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.

View solution in original post

7 REPLIES 7

Sandeep Rajput
Tera Patron
Tera Patron

@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.

 

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

 

Amrit4_0-1695814815478.png

 

 

Saurav11
Kilo Patron
Kilo Patron

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.

Anubhav24
Mega Sage
Mega Sage

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.