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

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -