I use Form Component
and have a ChoiceType field on the form which is rendered to a select field.
On the client-side I use select2 plugin which initializes a select with tags: true
allowing the addition of new values to it.
But if I add a new value then a validation on the server fails with an error
This value is not valid.
because the new value isn't in the choice list.
Is there a way to allow the addition of new values to a ChoiceType field
?