Trupti6
Tera Expert

Hi karrie,

From your requirement, the best thing for multiple selection is to use List collector,

To get the selected values of list collector use current.variable_pool.VARIABLE_NAME.getDisplayValue();

and try to write script as follows for approvals in approval activity.

 

answer =[];

var model = current.variable_pool.model.getDisplayValue();
var get_model = model.split(',');

for(i=0; i<get_model.length; i++){

if(get_model[i].trim()=='ABC' || get_model[i].trim()=='XYZ' ) {

answer.push('user1');
answer.push('user2');
continue;

}

if(get_model[i].trim()=='PQR'){
answer.push('user3');
continue;


}

Thanks,

Tripti S