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, "cloui...@gmail.com" <cloui...@gmail.com> wrote:

> Ok, do you have some example for the post-validator with embedform ?
> 
> On 19 juil, 13:49, Johannes <johannes.schmitt...@googlemail.com>
> 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, "cloui...@gmail.com" <cloui...@gmail.com> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> 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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to