List Collector populating

servicenow14710
Tera Expert

Hello developers, i have a requirement to populate list collector(multi selection) values in another text filed

Another req is , pass them to script include, Any suggestions is appreciated, Thanks!

2 REPLIES 2

Danish Bhairag2
Tera Sage
Tera Sage

Hi @servicenow14710 ,

 

you can simply use current.variables.list_collector_field_name.getDisplayValue(); to populate in text field.

 

for passing it to script include directly u can use the same way(without .getDisplayValue()) as it contains comma seperated sys ids as an output. 

 

Thanks,

Danish

Harish KM
Kilo Patron
Kilo Patron

Hi @servicenow14710 If i understand, you want to populate values on the string field from a list collector variable through script include and client script?

Regards
Harish