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

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -