Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to set values dynamically in list collector ?

Dinesh Kumar C
Tera Contributor

Hi folks ,

I created one service catalog and i have a situation like set values dynamically in my list collector field .

In below , i have a field "books" in that i have 2 entries . one is   Shiva another one is vishnu . If i select vishnu as my selection then automatically vaules in list collector filterout related values of   shiva . Is it possible to write client scripts ?

find_real_file.png

9 REPLIES 9

shruti_tyagi
ServiceNow Employee
ServiceNow Employee

Check this out:


https://www.servicenowguru.com/scripting/client-scripts-scripting/changing-filter-list-collector-var...



Thanks


Shruti


If the reply was informational, please like, mark as helpful or mark as correct!


Is there a way for this to work with another column in my table?   The issue is that 'Database Name' is the display column, but I need to be able to filter on the 'Roles' column in my listCollector, and this does not appear to work for those that indicate 'Display - false' in the table.


Ankur Bawiskar
Tera Patron
Tera Patron

@dinesh_c 

I have written a blog on this.

Please refer that

Dynamically set list collector on change of variable

Regards
Ankur

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

@dinesh_c

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

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

Ct111
Tera Sage

Hi Dinesh ,

Check this blog for  REFERENCE

 

Mark my ANSWER as CORRECT and HELPFUL if it helps