Disable backend validation for choice field in Symfony 2 Type

后端 未结 3 1113
悲哀的现实
悲哀的现实 2021-01-02 01:05

Is it possible to disable backend (server-side) validation for the specified field?

Wnen Im trying to send form with dynamicly loaded options I get error \"ERROR: T

3条回答
  •  时光取名叫无心
    2021-01-02 01:26

    I found the solution

    Symfony2.4 form 'This form should not contain extra fields' error

    For more details: http://symfony.com/doc/current/cookbook/form/dynamic_form_modification.html#cookbook-dynamic-form-modification-suppressing-form-validation

提交回复
热议问题