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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2018 09:59 AM
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?
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2018 10:51 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2018 11:18 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2019 07:25 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2020 09:05 AM
Try this to unlock all catalog list collectors converted to glide_list:
$j("button[id$='_unlock']").click();