Skip to main content
Nintex Community Menu Bar

Checkboxes - Select All

  • Feb 24, 2017 10:16 AM UTC
  • 3 replies
  • 76 views
  • Translate All

Forum|alt.badge.img+2

I have a list lookup which displays the multiple values retrieved as a checkbox list.

I also have a yes/no box above called SelectAll.

199877_pastedImage_1.png

Is there any way to set it so that when SelectAll is ticked, all the values in the checkbox list are ticked?

Any help would be appreciated. Thanks.

3 replies

Forum|alt.badge.img+12
  • Nintex Partner
  • Feb 24, 2017 10:37 AM UTC

Only with JavaScript. You would need to build something like this into your form:

$("#checkAll").click(function(){    
$
('input:checkbox').not(this).prop('checked', this.checked);
});
Translate

Forum|alt.badge.img+2

I'm not very experienced with javascript or using it in Nintex Forms.

Could you please explain how to set this up?

I've put the javascript you posted into the custom javascript section of the settings, but I'm not too sure where to go from there.

I've replaced the checkAll ID and "input:checkbox" with the ClientID javascript variable name for each control.

NWF$(selectallCID).click(function(){    
NWF$(countriesCID).not(this).prop('checked', this.checked);
});‍‍‍

Am I doing this right?

Translate

Forum|alt.badge.img+17
  • Nintex Partner
  • Apr 29, 2017 2:11 AM UTC

The second selector of "input:checkbox" is needed so it finds all the available check boxes and then checks them. If you add one control, then it may not select them all

Translate