St_5
St_5

Reputation: 303

Ember How validate form?

I research about validate form. I understand Ember does not know how to work with attributes validation HTML5(required, pattern ). For this need created functions with algorithm validation in model for each form. And run that function when click submit button

I have a question: I have possibility show standard HTML5 error message for not valid input?

For example: I check all fields(in Ember model) and one field not valid. We need for this field show notice that field is not valid at help HTML5(maybe run for this element valid() function) How do that?

Upvotes: 2

Views: 2008

Answers (1)

intuitivepixel
intuitivepixel

Reputation: 23322

Have a look at this project ember-easyForm and this introductory blog post. It makes creating forms in ember a lot easier, and it also includes validation.

Hope it helps.

Upvotes: 2

Related Questions