Serialize ChoiceType field value options on Symfony API -
when rendering symfony form in twig choicetype
field value options in <select>
dropdown (collection of <option>
tags within <select>
tag)
this way user knows options available , if list of available options changes user can see it.
is there way (except implementing custom serializer each form, or own serialization bundle obviously) when using symfony api server, let frontend know available options choicetype
fields?
Comments
Post a Comment