How to display a glide list variable, on a catalog item's form, as expanded by default

dp11
Tera Guru

Hi,

I have a List Collector variable on a catalog item's form with attribute set to 'glide_list'. So it displays as a glide list and on load of catalog form it shows up with the lock icon as below (One has to click on the lock icon to expand it and select values): 

find_real_file.png

I would like the display to show up expanded on load of the form as below: 

find_real_file.png

Anyone know how to achieve this?

Thanks!

1 ACCEPTED SOLUTION

Ashley Snyder1
Giga Guru

You can use an onLoad Client Script to auto-unlock the variable, such as:

window.setTimeout(openUnlock, 2000);
}
function openUnlock(){
	gel('IO:[SYS_ID_OF_YOUR_VARIABLE_HERE]_unlock').click();
}

Here's what mine looks like:

function onLoad() {
	window.setTimeout(openUnlock, 2000);
}
function openUnlock(){
	gel('IO:571b0111db3ea340049396a9db96199b_unlock').click();
}

View solution in original post

5 REPLIES 5

Make "Isolated Script" field on your client script false. if it is true, DOM will not work.