Hi,

  Welcome to symfony :)

  You must set a postValidator on the validatorSchema of your form.

  In the configure() method of your form :

public function configure()
{
  $this->setPostValidator(new sfValidatorSchemaCompare("left_field",
sfValidatorSchemaCompare::GREATER_THAN, "right_field"));
}


Is it OK ?

Alexandre

2009/12/2 WEB-CHALLENGE <[email protected]>

> Hi everybody!
>
>
> I'm a new Symfony User.
>
> I want to setup a form where the user can enter many values.
>
> But, in the validation, the form won't be valid unless a certain data
> [an integer field] is greater than an other also entered by the user.
>
> I think it's simple but I'm really novice in Symfony environnement.
>
> Thanks
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>


-- 
Alexandre Salomé -- [email protected]

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to