Description
Description
Currently, on a multistep form with required fields, a user cannot progress to the next step unless they have completed all the required fields on the current step.
This can be frustrating for users, as they cannot click through all the steps to first check what data is required before starting to complete the form.
It would be nice to have an option that disables field validation for the current step when switching to a different step.
Looking through the code, this should be relatively easy to implement, as it already allows you to jump to a "viewed" step, if the current step is invalid. It looks like the following changes would be required:
- If this option is enabled, skip the check on line 643
- After jumping to a step from a link in
error-container
, trigger validation. (If a user attempts to submit a form with validation issues, it already presents a list of links to steps with issues, but when clicking one of these steps, it should ideally highlight the invalid fields by initiating validation.)
If the above sounds ok, I'd be happy to give this a bash, but will need some basic pointers on getting the tooling up and running. Thanks!
Additional context or points of discussion
No response
Validations
- You intend to implement the feature yourself
- You have read the contributing guide
- You strongly believe this feature should be in core, rather than being its own community module
- You have checked for existing issues or pull requests related to this feature (and didn't find any)