How to set the list collector glide_list variable to be unlocked by default

alexbones
Tera Expert

I have a list collector variable on a catalog form and have set the glide_list attribute on it. I am wondering if there is a way to have it set to be unlocked when loading the form?

5 REPLIES 5

Thanks Paradeep. I must not be setting something right, Adding the field lock or unlock options to a onLoad catalog Client script is still showing the field is locked when I load the form and I have to unlock it to add values to it.



I have tried a few different ways with no luck.



Function onLoad() {


        $('<variable_name>_unlock').click();


        }


or


$('item_option_new.<variable_name>_unlock').click();


or


gel('IO:<variable sys_id>_unlock').click();



Am I just setting it up wrong or was the script intended to be used in a different way?


The issue I've run into with that post is that it's not speaking to catalog item variables, i.e. list collectors that have been converted to glide lists.

Try this to unlock all catalog list collectors converted to glide_list:

$j("button[id$='_unlock']").click();