validate
Main validation method of a control.
Validation:
Checks whether the control is visible (if not, skips validation)
Determines whether the control is required
Checks that a required field is not empty
Runs the validation specific to the control type
Parameters
state
control state
control
control definition