Skip to content

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

The release of feature/visible-field-validation looks good. But unfortunately the form.min.js does not contain the Javascript adjustments.

@denislorch
Copy link
Contributor Author

The form.min.js relates to the changing master branch, the file should be generated if the PR is accepted as described here https://github.com/in2code-de/powermail/tree/master/Resources/Private/Build, before the merge. The Feature was implemented for the TYPO3 v12 early access pro branch here https://github.com/in2code-pro/powermail/pull/81.

@denislorch denislorch changed the base branch from master to typo3-v12 December 2, 2024 11:44
@denislorch
Copy link
Contributor Author

I updated the PR to the latest commit (typo3-v12 branch) and validated it again.
Let me know if an updated form.min.js is needed.

@mschwemer
Copy link
Collaborator

Thanks for your contribution and continously updating the PR . I am really sorry for the delay. :-(

We implemented the morestep validation for v13 while EAP.

We basically do not implement new features in v12. If you really need it, we would do it as a payed service.

I am really sorry for that. As you see in the past months the development for powermail got much more active, since in2code sponsors several hours per week to work on powermail.

If you have any questions, please do not hesitate to contact me via TYPO3s slack or comment here.

Best regards
Marcus

@mschwemer mschwemer closed this Sep 18, 2025
@baschny
Copy link

baschny commented Oct 8, 2025

Hi @mschwemer , we thought this feature was implemented in v13, but found out that it was not. So our patch continues relevant even in v13. Is there any reason not to implement this change? Its very frustrating for the users of multi-step forms to only get notified about validation errors after going through all steps and hitting "submit", instead of being able to correct the mistakes right on the page where it happens.

@mschwemer
Copy link
Collaborator

mschwemer commented Oct 10, 2025

I reopen this issue / PR, so it does not get lost.

Need to recheck it. Sorry for that

@mschwemer mschwemer reopened this Oct 10, 2025
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.

4 participants