Closed (fixed)
Project:
Webform Validation
Version:
6.x-1.3
Component:
Validation rules
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2011 at 05:34 UTC
Updated:
31 Mar 2011 at 20:01 UTC
Similar to: http://drupal.org/node/980154 it would be great if most validation that can be performed against a textfield could be done against a hidden field.
I have hacked the code for example to do numeric validation. We use this on some forms where we email out a link, and there is a GET parameter that is set to a hidden field (using %get[key] as the default value of the hidden field).
Maybe I'm doing it the wrong way, however if not it would be great to add "hidden" to the supported types for most of the validators. (So we don't have to patch for every release).
Comments
Comment #1
hendrakieran commentedHi there,
Can you share your hack here? I need to exactly the same thing!
Comment #2
svendecabooterYou can use hook_webform_validation_validators() to change the default settings, so you don't have to hack the module.
However you make a good point, so I have added the "hidden" component to validation rules that could most likely benefit from it.