I have a Symfony3 form that has a ChoiceType field. It uses Select2 with an AJAX data source. This bit is working fine. However, when the form is submitted, the Symfony validation kicks in and complains:
This value is not valid
I guess this is because the choice picked via AJAX doesn't exist in the 'choices' key in the Form Type.
I'm relatively new to Symfony. Can someone point me in the right direction to disable the validation on the field?