Closed (fixed)
Project:
Webform Validation
Version:
7.x-1.x-dev
Component:
Validation rules
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2012 at 16:27 UTC
Updated:
12 Jan 2023 at 21:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
liam morlandSorry, I meant to put this on the Webform Validation queue.
Comment #2
liam morlandPatch implementing this feature.
Comment #3
liam morlandUpdated version uses custom error messages.
Comment #4
svendecabooterThanks for the new validation rule. It's looking good on first sight.
Some remarks:
Other than that I don't see any issues with it, so when those are adressed we might go ahead and commit it.
Note to self: patch also applies on 6.x branch by the way.
Comment #5
liam morlandI think I left in all the component types because you never know what someone might want to be able to do. A comparison with a hidden could be used to enforce a number in a range, for example.
I did not individually test all component types. I figured they all work about the same. I tested time and date separately because they have different code execution paths.
I have attached a patch with improved help text.
Comment #6
svendecabooterLooks good to me.
Comment #7
liam morlandFixed in f803325. As-fixed attached.
Comment #8
liam morlandComment #9
liam morlandDrupal 6 is no longer supported.
Comment #10
solideogloria commentedJust a note. This validator isn't in the list of available validators on the module front page.