-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Form validation issue with single-line limit #1997
Comments
I will say that we've revamped validation in Formie 3 (for Craft 5) to provide much-needed conformity between server-side and client-side. This however is a breaking change for Formie 2. I know that changing one of these styles is a "fix" for this issue, but it's also a breaking change for a point release. As for scrolling to an error, at the moment that's restricted to an Ajax form, where we have control over the form submission process. I'm hesitant to include this functionality (scrolling to the first error on page load) when the page is loaded for fear that it might mess up some sites where they want control over the scroll behaviour for some reason. I'll give it some thought though. |
Describe the bug
Having a form submission method set as page-reload and single-line is added to a form and the value has more than a set limit or as the default 255, the page refreshes and takes the user back to the top of the page rather than focusing on the field that caused the error. Also the styling of the form input error message doesn't match other fields and the form error message "Couldn’t save submission due to errors." does not display.
Page Reload Method
Ajax Method
Steps to reproduce
Form settings
Craft CMS version
4.10.4
Plugin version
2.1.20
Multi-site?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: