[symfony-users] Post Validator ($this-validatorSchema-setPostValidator())

2011-05-05 Thread Raju
Is there any way to apply post validator only when setvalidator has no validation to show. I got this message fasd is not a number. Upper Slab Required . where upper slab required is set through post validation i am doing this because this is required depend on some conditon like percent or flat.

[symfony-users] Post Validator

2011-05-05 Thread Raju
$this-setValidators(array( 'charge_type'= new sfValidatorChoice(array('choices' = array(0 = 'percent', 1 = 'flat'), 'required' = false)), 'upper_slab' = new sfValidatorNumber(array('min'=0,'required' = false)), ));

Re: [symfony-users] Post Validator

2011-05-05 Thread Gareth McCumskey
Perhaps try using strlen() function instead of empty() function and see if that makes a difference. On Thu, May 5, 2011 at 7:27 AM, Raju yadavrajesh25j...@gmail.com wrote: $this-setValidators(array( 'charge_type'= new sfValidatorChoice(array('choices' = array(0 =