Auto-populate list collector values based on another select box variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 04:27 AM - edited 05-14-2025 04:29 AM
Hi,
I have variable A (selectbox) and variable B(list collector). When I select any option from variable A for eg. "x1" then variable B referencing a customized table having a field u_description which will filter u_description contains "read" keyword and u_description contains "x1". Based on the condition, it will display the one or multiple results from the table in the varible B.
I have tried with a ref qual in the variable B but it is not working based on the selection.
javascript:"u_descriptionLIKEread^u_descriptionLIKE"+current.variables.please_select_the_fileserver_where_the_shared_folder_is_located;
Would appreciate your help on this.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 06:59 AM - edited 05-14-2025 07:01 AM
When the list collector value is showing all value. When I am selecting BRCGNTDFS001P, the list collector values are not changing.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 07:06 AM
you are filtering so it won't auto populate the list collector?
You want to auto populate the list collector or restrict it?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 09:12 AM
Hi Ankur,
Based on read and the fileserver name selected in the description, it should show only those results in the list collector not all the group names from the table.
If A selected, it should check for all the values of A and read in the description and show those results.
If there is only one record then one should show in LC. If 4 then 4 records.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 08:32 PM
so what script did you start and where are you stuck?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 07:55 AM
Hi Ankur,
This is the script :