Checkbox Validation using Spry in ContactForm Solution Pack
Hi there,
I have one check box on a form that needs to be ticked before the submission is made.
I have looked at the Spry for the checkbox and have selected it as a required field.
However if I don't tick this box the form is still processed.
I must be missing something right in front of me. I am assuming that i can achieve this with just Spry, like all the other fields in the form.
This is my checkbox...
<span id="sprycheckbox1">
<input name="Terms" type="checkbox" id="Terms" value="1">
<span class="checkboxRequiredMsg">Please make a selection.</span></span></span>
And this is my spry code at the bottom of the form
var sprycheckbox1 = new Spry.Widget.ValidationCheckbox("sprycheckbox1", {validateOn:["blur", "change"]});
Any advice would be appreciated.