[symfony-users] Re: conditional validation

2008-02-15 Thread forkmantis
Gergo, This snippet should help you out: http://www.symfony-project.org/snippets/snippet/232 On Feb 15, 4:39 am, pihentagy [EMAIL PROTECTED] wrote: Hi all! I need something conditional validation for the following: There is a register form in my app, and after registration, you can edit

[symfony-users] Re: Conditional validation

2007-07-04 Thread Matthias Nothhaft
Alexander Deruwe wrote: Hey everyone, I'm wondering if it's possible to do conditional validation... As a bit of explanation, I am working with an object that might have (or have not) some fields set depending on certain conditions. Can I handle this with one edit.yml validator? I.e.

[symfony-users] Re: Conditional validation

2007-07-04 Thread Alexander Deruwe
On 04 Jul 2007, at 15:27, Matthias Nothhaft wrote: You should write one edit.yml with all your possible validators and put these condition checks into your own validators. Simply return true in your validator if the field not needs to be checked. If you need required checks on conditional