I looked at it before asking you :) But I can't see how to access to the main form values in the ProductPhotoValidatorSchema. In the example, it only access to the embed form values, doesn't it ?
On 19 juil, 15:30, Daniel Lohse <[email protected]> wrote: > Take a look at the More with symfony book — chapter Advanced Forms. :) > > Daniel > > Sent from my iPhone > > On Jul 19, 2010, at 3:06 PM, "[email protected]" <[email protected]> wrote: > > > Ok, do you have some example for the post-validator with embedform ? > > > On 19 juil, 13:49, Johannes <[email protected]> > > wrote: > >> In your embedded forms, you only have access to the values of the > >> specific, embedded form. > > >> If you need the values of the TaskForm (the parent form), then you > >> need to move your validation up to that form. > > >> E.g., you can add a post-validator to the TaskForm which validates > >> your logic for each ReminderForm, and then throws errors for the > >> fields in question (either a sfValidatorErrorSchema, or a > >> sfValidatorError). > > >> kind regards, > >> Johannes > > >> On 19 Jul., 13:19, "[email protected]" <[email protected]> wrote:> Hi, > > >>> I have a main form and some embedforms : one Task and many reminders > >>> form. > >>> My Task has a duedate, > >>> Reminders timeout is calculating from this duedate. > > >>> I want to : > >>> - access to the duedate in the ReminderValidator doClean > >>> - to send an error if a reminder is set (on ReminderForm/embedform), > >>> and no duedate is set (on TaskForm/main form) > > >>> How can I do all this ? > > >>> Thanks ! > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > > security at symfony-project.com > > > 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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
