Re: validwhen calculation is true

2008-10-08 Thread Laurie Harper
I don't think the validWhen validator supports either type cooercion or arithmetic. You'll probably need to handle this validation programatically in your validate() method. L. Jefferson Wilson wrote: I have a form where the user will peform a simple calculation in order to prevent spam (1 +

validwhen calculation is true

2008-10-08 Thread Jefferson Wilson
I have a form where the user will peform a simple calculation in order to prevent spam (1 + 10 = 11). As a result, I would like to use the 'validwhen' validation step to handle this. I am overlooking something I believe. I have created the following: 1) Field Definition In validation.xml