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

freakalis’s picture

Status: Active » Fixed

Thank you, this has been added in the latest dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.