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
