I would like to create a "Select All" check box at the bottom of a list of check boxes in my catalog item. What is the best way to do this?

Cinlin
Giga Expert

Here is the list.

find_real_file.png

12 REPLIES 12

Thanks now it lets me select but does not select all

find_real_file.png

Replace all the true with 'true'. Quotes on both side.

If still doesnt work, can you copy the script and paste it here


Please mark this response as correct or helpful if it assisted you with your question.

sheena2629
Kilo Explorer

function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var select = g_form.getValue('select_all');

if (select == 'true')
// g_form.showFieldMsg("inside true " +select);
//if ( newValue == 'true')

{

g_form.setValue('u_auto_update_active', 'true');
g_form.setValue('u_antivirus_up_date', 'true');
g_form.setValue('u_scanning_live', 'true');
g_form.setValue('u_no_viruses', 'true');
g_form.setValue('u_security_updates', 'true');
g_form.setValue('u_firewall_active', 'true');
g_form.setValue('u_firewall_version', 'true');

 

 

} else

{

g_form.setValue('u_auto_update_active', 'false');
g_form.setValue('u_antivirus_up_date', 'false');
g_form.setValue('u_scanning_live', 'false');
g_form.setValue('u_no_viruses', 'false');
g_form.setValue('u_security_updates', 'false');
g_form.setValue('u_firewall_active', 'false');
g_form.setValue('u_firewall_version', 'false');


}
}

 

Above script not working for me

Kindly help