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.
$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)),
));
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 =