Expand Catalog Variable List Collector

Edwin Fuller
Tera Guru

I have two list collectors type variables as you see below and both have the glide_list attribute. How can I have this always expanded? I've seen several examples however, none have worked so far and I'm assuming there is something slight different that needs to be done when its in regards to catalog variables.

 

find_real_file.png

1 ACCEPTED SOLUTION

Edwin Fuller
Tera Guru

Thank you very much, that worked!!

View solution in original post

5 REPLIES 5

SatheeshKumar
Kilo Sage

Hi Edwin, Write an onload client script

 

 

function onLoad() { //Type appropriate comment here, and begin script below

var var1 = g_form.resolveNameMap('var_name');

setTimeout( function() { $(var1+'_unlock').click(); }, 750); }

 

 

This will fix your issue!! Thanks Mark Correct if this resolves your query

Thanks for the help!

For anyone who happens across this, modern versions of ServiceNow limit the ability of client scripts to interact with elements on the page like this by default. You'll need to set the "Isolate Script" option on your script to false in order for this to work.

Edwin Fuller
Tera Guru

Thank you very much, that worked!!

Thanks Edwin, mark the solution as Correct answer if it solved your query.