Ankur Bawiskar
Tera Patron

Hi,

This is not possible out of the box

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x 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  ||  10x 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Neil Taylor2
Kilo Expert

Hi

I had a similar requirement but in addition the stakeholder also wanted the ability to select values in a range and multiple individual values. In the end we came across this slush-bucket widget solution that allowed us to achieve what was necessary instead of the OOTB List Collector variable type:  https://developer.servicenow.com/connect.do#!/share/contents/3638254_service_portal_slushbucket_widg...

 

I've attached a pic of what we implemented. Hope this helps.