Gather all the checkboxes in an array and add the values. If the total is equal to zero, no checkbox was selected. For the text field, just check the value length is greater than or equal to one.
- Code: Select all
if (checkboxes.total == 0 || textfield.value <= 1) {
return false;
}