indexiatech / ember-forms

Smart, Intuitive forms for Ember.js styled with Bootstrap, Multi layouts and Validation support.
http://indexiatech.github.io/ember-forms
Apache License 2.0
218 stars 45 forks source link

How do you show validation errors for all fields? #91

Open akhopkar opened 9 years ago

akhopkar commented 9 years ago

This may be a dumb question but it doesn't seem obvious to me how you show validation errors for all fields with errors when a form is submitted. The component does a good job of showing validation errors in a field once you focus into that field and then focus out of it. However, when the form is submitted and validation has failed, I need it to highlight the fields where the validation has failed including fields with a presence validator which the user may not even have focussed on at all before submitting the form.

Is there any easy way to just 'show all errors' on the form?

spruce commented 9 years ago

I once had a pull request which did that. but it never got accepted (https://github.com/indexiatech/ember-forms/pull/52) you can check out my repo which should be usable for you. To use it bind showAllErrors to a boolean

spruce commented 9 years ago

This will get added to the new ember-rapid-forms repo (https://github.com/piceaTech/ember-rapid-forms) as soon as possible now.

Forster-Groux commented 9 years ago

Is it added yet?