Adding the following code to webform_viewreference.module will allow Webform Validation to be applied to viewselect fields:
function webform_viewreference_webform_validator_alter(&$validators) {
$validators['select_min']['component_types'][] = 'viewselect';
$validators['select_max']['component_types'][] = 'viewselect';
$validators['select_exact']['component_types'][] = 'viewselect';
}
Webform Validation currently has the three validation rules above for the "select" component type. This simply extends the same validation to the viewselect type.
Comments
Comment #1
freakalis commentedThank you, this has been added in the latest dev.