LIst Collector Variable - expanded by default

leahp
Kilo Guru

Is there a way to have a variable List Collector with the glide_list attribute expanded / unlocked by default?

1 ACCEPTED SOLUTION

leahp
Kilo Guru

For anyone searching on how to do this:

Create an onLoad Client Script:

 

function onLoad() {


//Type appropriate comment here, and begin script below


window.setTimeout(openUnlock, 2000);


}

 


function openUnlock(){


gel('IO:42dbec804fd79b00b7ea650f0310c79e_unlock').click();//this is the IO of the variable you want to "unlock"


}

 

View solution in original post

5 REPLIES 5

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Leahp,

 

You may find the below thread helpful.

https://community.servicenow.com/community?id=community_question&sys_id=81618729db98dbc01dcaf3231f961954

 

Thanks,

Pradeep Sharma

leahp
Kilo Guru

For anyone searching on how to do this:

Create an onLoad Client Script:

 

function onLoad() {


//Type appropriate comment here, and begin script below


window.setTimeout(openUnlock, 2000);


}

 


function openUnlock(){


gel('IO:42dbec804fd79b00b7ea650f0310c79e_unlock').click();//this is the IO of the variable you want to "unlock"


}

 

User672379
Tera Contributor

Thank you leahp!

This is the only answer that I found worked for list collector variables being used with the glide_list attribute.

 

Adam43
Tera Contributor

this one worked for me:

https://community.servicenow.com/community?id=community_question&sys_id=e7898d37dba31340fece0b55ca961962