I solved it this way: In your form configure method (i18n form): /* set required if object culture is 'en' */ $required = ($this->getObject()->getCulture() === 'en') ? true : false;
$this->setValidators(array( 'name' => new sfValidatorString(array('required' => $required)), )); Hope this helps ... Michael On 23 Okt., 10:49, HAUSa <jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote: > In my ObjectI18nForm I made several fields required. > I embedded the ObjectI18nForm for two languages in my ObjectForm. > > Ofcourse, in both languages the fields are required. But I want my > user to be able to submit only one language, he / she is not required > to complete the fields for both languages. > > Anyone who knows how I can handle this? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---