Auto populate list collector

tpoeckes
Giga Guru

Hello all,

I'm trying to pass the sys_id form CI UI Action button to catalog item.  That part is working.  I want to auto populate the right slushbucket with the CI sys_id that was passed.   For some reason one of my highlighted statements (in client script below) does not work.  I got the example from servicenowguru. 

Here's the slush bucket.

find_real_file.png

 

Here's my client script in catalog item. The gel function does not work.

find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

since your script is using gel which is not recommended you need to set isolate script to false for that onload client script; this field is not available on form but from list layout you can set it to false; by default it is set to true

making it to false would allow gel() and DOM manipulation script to work

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

12 REPLIES 12

LAXMI TODAKAR2
Tera Contributor

Hello Ankur,

AddOption  is not working, when I am running my code, I am not getting the message i.e alert("myCIArray1111").

Please let me know how to proceed on this.

Thanks,
Laxmi 

 

find_real_file.png

 

 

Hi Laxmi,

please refer below blog for help

Dynamically set list collector on change of variable

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello Ankur,

Thanks for your response!!

I am referring same post and following same code, When it is coming to addoption code line, it is not working, please suggest me on this.

 

Thanks,

Laxmi

LAXMI TODAKAR2
Tera Contributor

Hello Ankur,

I am doing it Table view, is it possible to configure?

Please guide me on this.

Thanks,

Laxmi

@LAXMI TODAKAR 

Can you paste screenshot here

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader