make all checkboxes compulsary

I have a form with a question and several checkboxes. I need it to be a requirement that all boxes are ticked but I didn’t really want to have to list out all boxes separately. Is there a way to do this? The site is http://www.gardinersnursing.co.uk/application-form.

Thank you!

This would require custom code in a new plugin or your theme functions.php if you don't want separate questions. Here's an example:

add_filter('frm_validate_field_entry', 'my_custom_validation', 10, 3);
function my_custom_validation($errors, $posted_field, $posted_value){
  if($posted_field->id == 25){ //change 25 to the ID of the field to validate
    if(!is_array($posted_value) or count($posted_value) < 5)
       $errors['field'. $posted_field->id] = 'That field is wrong!';
  }
  return $errors;
}

Please troubleshoot on your own.

Ok - but there is no way of doing this through the plugin it's self? Basically I didn't especially want to have two lines of text for every checkbox but they must all be ticked prior to being able to move on to the next section. I can't see a way of doing this as the check box field seems to require heading text as well as option text.

If you don't want to get into custom code, you must use separate fields for each checkbox. You can set the label to hidden in the field options for all but the first field. You can also edit the HTML however you'd like in the customize html tab on the form settings page.

Thanks Stephanie - I hadn't noticed that!

Topic closed.