You may add the onsubmit
attribute in your form tag and call a function that does the validation on checkboxes.
Alternately, you may create your own extension of AbstractElementDecoration
(defined in spring.js
) using dojo.declare
and pass to the validate
attribute a function that will do the checkboxes validation for you. For elementId
you may pass in the id
of a div
element that contains all the checkboxes. Spring.ValidateAllDecoration
calls Spring.validateAll
function. Make sure you do the necessary tweaking in your AbstractElementDecoration
extension so that there is no exceptions in Spring.validateAll
.