Monday, September 29, 2008

Make a validation rule be valid only in a certain date

Hello!

Is there a way to make a validation rule be applied only within a certain
date? For examplo, in 10/10/2008 the rule will be used, but next day,
10/11/2008, the rule will not be used. The way I need it, there are two
rules, one of them would be used for two days, and the other one will be
used for only one day, and both of them starts at the same day.

The rule is simple, just an 'equalTO' with a warning message.

For example, in day 1, if the string submited in a form is equalTo
"whatever" or to "wherever", then the rule will be applied. In day 2, the
rule will be applied only to "wherever". And in day 3, no rule will be
applied.

Thanks!
--
View this message in context: http://www.nabble.com/Make-a-validation-rule-be-valid-only-in-a-certain-date-tp19727816p19727816.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: