Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akhopkar opened this issue Mar 7, 2015 · 3 comments
Open

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

akhopkar opened this issue Mar 7, 2015 · 3 comments

Comments

@akhopkar
Copy link

akhopkar commented Mar 7, 2015

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
Copy link

spruce commented Mar 12, 2015

I once had a pull request which did that. but it never got accepted (#52) you can check out my repo which should be usable for you. To use it bind showAllErrors to a boolean

@spruce
Copy link

spruce commented Apr 14, 2015

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
Copy link

Is it added yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants