Can anyone help me solve a select box issue with formit ?
I have 4 options in a drop down list / select box as follows
- Select an option
- One
- Two
- Three
Choosing One, Two or Three should not throw an error but choosing
"Select an option" should cause the field to fail validation.
<label for ="numbers">Numbers:
<span class="required">*</span>
<span class="error">[[!+fi.error.numbers]]</span>
</label>
<select name="numbers" value="[[!+fi.numbers]]">
<option value="">Select an option...</option>
<option value="one" [[!+fi.numbers:FormItIsSelected=`one`]]>One</option>
<option value="two" [[!+fi.numbers:FormItIsSelected=`two`]]>Two</option>
<option value="three" [[!+fi.numbers:FormItIsSelected=`three`]]>Three</option>
</select>
Thanks