Validation Methods for Selection Elements
Radio Button, Checkbox, and Drop-down Menu elements have a small set of validation methods, and we review these here in this topic. Text Field and Long Text Area elements are covered in Methods for Text Elements.
If you want to enforce more validation than simply making a field required, choose a validation method from the drop-down menu in the Validation property of the Field Validation Setting property panel. For each element, you may choose any one of the following methods from that drop-down menu.
A validation error will occur if the user entry does not conform to the method you specify. You should consider editing the Custom Message property on the Field Validation Setting to match your data entry requirements.
Radio Buttons and Drop Down Menus
The same validation methods are available for Radio Buttons and Drop Down Menu elements.
Property | Description |
---|---|
Is Not Empty | This method functions like the Required property. If there is no user entry, the character string length will be zero and will cause a validation error. The advantage to using Is Not Empty as opposed to using the required setting is that you can define a custom validation message when using this property to display rather than the default 'This field is Required" message. |
Confirm Duplicate Entry | The user entry in this field must be identical to the field you specify in the Validation Field property. |
Checkboxes
These are the validation methods available for checkboxes.
Property | Description |
---|---|
Is Not Empty | This method functions like the Required property. If there is no user entry, the character string length will be zero and will cause a validation error. The advantage to using Is Not Empty as opposed to using the required setting is that you can define a custom validation message when using this property to display rather than the default 'This field is Required" message. |
Max Selections | Specify the maximum number of options that may be chosen. |
Min Selections | Specify the minimum number of options that must be chosen. |
Confirm Duplicate Entry | The user entry in this field must be identical to the field you specify in the Validation Field property. |
0 Comments