Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add select all option in List Collector Variable

Radhe
Tera Expert

Hi All,

I want to add select all option in List Collector Variable choice so that i could select all options at the same time instead of one by one when require to add all choices of  List Collector Variable 

1 ACCEPTED SOLUTION

@Radhe 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

This is not possible out of the box

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I fixed it with on change client script.

function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {

return;
}
if (newValue == 'true') {

g_form.setValue("vabc_zxy", "c477ca52db2428101422fbf4e296196b,0db74e52db2428101422fbf4e29619f0,1cd7ce52db2428101422fbf4e29619cc,29080a52db2428101422fbf4e2961975,97e7c612db2428101422fbf4e296192e,e4384e12db2428101422fbf4e2961940,eb18ce52db2428101422fbf4e29619d2", "Abc, Def, Ghy, BCA, BBH, CVF, CVX");

} else
g_form.clearValue('vabc_zxy');

}

Thanks for the update.

Just to inform hard-coding the sys_ids is not good practice

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Radhe 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader