Datatables Editor Validation - How to require at least one checkbox group item to be selected
Datatables Editor Validation - How to require at least one checkbox group item to be selected
terry.farquhar@jhuapl.edu
Posts: 1Questions: 1Answers: 0
How can I make a checkbox field required? I want to require at least one item to be selected in specific checkbox group and the following code doesn't seem to work as it does the other form fields.
->validator( 'Validate::required' )
*My checkbox list is dynamically created btw.
Thank you!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Is this with an Mjoin? If so, then use the validation methods discussed here.
Allan