You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
no you cannot, because choices impact the building of the form. They are not passed as is to the template (they main goal of the Form component is not to handle the rendering, but to handle the form binding)
I am using a
ChoiceType
in a Symfony3 form typeNow I want to set
choices
dynamically in twig. I would assume to go like thisbut that throws error
Is there any way to set choices in twig (while rendering the form field using
form_widget()
orform_row()
)?The text was updated successfully, but these errors were encountered: