Active
Project:
Field Validation
Version:
7.x-2.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2014 at 18:50 UTC
Updated:
26 Feb 2014 at 15:04 UTC
Jump to comment: Most recent
Is it possible to use this module to verify sum of all values in multi-value integer field? For example, if I have a multi-value integer field where each cardinal value represents a percentage, I don't want the user to be able to enter a set of values that sums > 100.
Can this module be used to validate the sum of all values in a multi-value field? If so, how?
If not, how difficult would it be to achieve this? Creative recipes welcome.
Comments
Comment #1
lunk rat commentedComment #2
g089h515r806 commentedyou could use php validator, here is some sample code:
Comment #3
lunk rat commentedThank you g089h515r806—I will use the PHP validator. And thanks for the sample code!