-
Notifications
You must be signed in to change notification settings - Fork 174
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
[FEATURE] Add morestep fieldset validation #1090
base: typo3-v12
Are you sure you want to change the base?
[FEATURE] Add morestep fieldset validation #1090
Conversation
* to validate those fields in multistepform for example
* if the data-powermail-morestep-validate attribute is set to "true" on morestep button (new option) * we validate the visible fields and scroll to the first error in error case
* without it's problamtic if the fieldsets differ in height * if true, the user has to scroll manually to input the new fieldset
* scroll on navigation click, not on btn-group link above
The release of feature/visible-field-validation looks good. But unfortunately the form.min.js does not contain the Javascript adjustments. |
The |
I updated the PR to the latest commit ( |
We need the option to validate the current (visible) fieldset on multistep forms.
The validation is done clientsided in JavaScript on page switch and scrolls to the first visible error if exist.
To simplify the usage, the setting validation.morestep.fieldset was added.
As a nice to have improvement, a simple scroll into view for multistep forms on page switch was added, to avoid manual user scrolling if the height of the fieldsets differ.