AngularJS blocks submit button in symfony2 form

后端 未结 2 1477
死守一世寂寞
死守一世寂寞 2021-01-28 13:33

I have form created in symfony2, which at the end renders button to submit form. When I add ng-app=\"myApp\" everything works fine, but I can\'t submit form which i

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-28 13:57

    We need more informations, did you let browser validate form ? To remove :

    {{ form(form, { 
        'attr': {
            novalidate,
        },
        }) 
    }}
    

    Maybe errors popup are hidden (happen with various complexe form fields)

    When you said "i can't submit", is the submit button unable ? Errors happen after sumbission ?

提交回复
热议问题