Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Populate list collector from script include in a client script

Josh Evans
Tera Contributor

Hello,

 

I am trying to populate a list collector field from a client script/script include and I am getting stuck on calling the script include from the client script to bring the new values in. I am using a m2m table with relationships built out. Below are screenshots of the script include as well as the client script as it stands currently.

JoshEvans_0-1712853733362.png

JoshEvans_1-1712853904460.png

So my questions is essentially:

How do I pass the system field into the script include, and how do I bring the value for the country field back to populate that list collector with those values from the m2m table?

 

Thanks in advance!

1 REPLY 1

Astik Thombare
Tera Sage

Hi @Josh Evans ,

 

Please follow below thread it will be helpful -

 

https://www.servicenow.com/community/developer-articles/how-to-call-script-include-from-client-scrip...

 

If I helped you with your case, please click the Thumb Icon and mark as Correct.

 

 

Thanks,
Astik