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

CMS: Jump to field if validation error #5984

Open
froog opened this issue Sep 12, 2016 · 1 comment
Open

CMS: Jump to field if validation error #5984

froog opened this issue Sep 12, 2016 · 1 comment

Comments

@froog
Copy link
Contributor

froog commented Sep 12, 2016

In Model Admin (or Page, or anywhere where there is a form), if you have a field that has a validation error and is below the fold (ie; you'd need to scroll to see it), it won't scroll to that field with the error.

This is a problem as it means the user might think that the form has been successfully saved where in fact it hasn't.

There is scroll related code in LeftAndMain.EditForm.js (saveFieldFocus & restoreFieldFocus) but this is to scroll to the last focused field.

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

No branches or pull requests

5 participants