Retrive value in list Collector
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 01:28 AM
How Can I get all the seclected values in a List Collector in a script include?
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 01:51 AM
Hello @Rosy14 ,
You can write a onchange client script to get the values of list collector into an array
here is the sample code
var traineesNames = g_form.getValue('select_trainee'); // select_trainee is the back end name of the list collector
var trainees = traineesNames.split(','); // trainees variable contains all the selected names in the list collector
Please mark my answer correct & helpful, if it helps you
Thank you
Please mark my answer helpful & correct ✅ if it helps you
Thank you
G Ramana Murthy
ServiceNow Developer
Thank you
G Ramana Murthy
ServiceNow Developer