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

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.

Can be a ACL or some script on this particular table which might be restricting the user to edit those two fields

Its possible to set both by editing the values in the list control of the variables list:

fcaruso123_1-1755012761198.png

Clearing the values there will correct the issue