Home » HTML » HTML_QuickForm2 » Bug #9097
option to execute rules even when element values are empty
Details
| Request #9097 | option to execute rules even when element values are empty |
|---|---|
| Submitted | 2006-10-19 19:56 UTC |
| From | marcio at corp dot grupos dot com dot br |
| Assigned | avb |
| Status | Closed |
| Package | HTML_QuickForm2 |
| PHP Version | 4.4.4 |
| OS | freebsd |
| Roadmaps | 0.2.0 |
Comments
[2006-10-19 19:56 UTC] marcio at corp dot grupos dot com dot br
Description:
------------
Class Rules needs and attribute (validateIfEmptyValue, by default false) that says to validate() execute that rule even when the element has an empty value. Now it is hardcoded for required and uploadedfile, in addRule(). These rules should set validateIfEmptyValue attribute to true.
I need ( :) ) that when i created a rule called requiredIfCompare, where an elemento should be required only if some comparison of other elements results true.
It could be in QF 3, next version ;~