I have one form that have several subforms. Depending on radio button clicked, javascript expands one subform.
In order to achieve this using form component, I have created many separated form objects, which are rendered under main form. Depedngin on radio switch ($request->get('radio')) I validate one of many forms. In order to disable HTML5 required attirbute I marked forms as not required unless radio submitted for that form $form1 = $factory->create(new CreditCardFormType(), null, array('required' => $form1Required)); But this have some impact on select elements on the form. When form is marked as not required, select elements don't have empty option selected by default, if marked required, they don't have empty option. Anyone knows wy, and how to unify this behaviour? Also, if there is some better way to handle subforms, please suggest. Regards, Sasa Stamnekvic. -- 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