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

[FEATURE] Add morestep fieldset validation #1090

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

denislorch
Copy link
Contributor

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.

* 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
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

Successfully merging this pull request may close these issues.

1 participant