Closed (fixed)
Project:
Webform View Reference Component
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 May 2010 at 23:50 UTC
Updated:
20 Jan 2011 at 22:50 UTC
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.