Follow

Combine / Concatenate Two Lists Together

If you would like to combine the selected values from two lists fields, you can use the following script as a template:

Note you will need to replace the items in red with your field keys.

var list = $list_1$;
var list2 = $list_2$;
var stringConcat = '';

if(Array.isArray(list)) {

for (i = 0; i < list.length; i += 1) {
stringConcat = stringConcat + ' ' + list[i];
}
}

if(Array.isArray(list2)) {

for (i = 0; i < list2.length; i += 1) {
stringConcat = stringConcat + ' ' + list2[i];
}
}

return stringConcat;

 

Have more questions? Submit a request

Comments

Powered by Zendesk