Replies: 2 comments
-
|
Alternatively, is it possible to use the multi-step plugin (or the custom implementation example) without having the fields wrapped in objects for each step? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I was able to show the errors doing this on all fields in the step: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building dynamic forms based on user schema.
I can't use form groups or the multi-step plugin because it created an additional wrapper for the form fields. E.g. I get:
instead of flat object of fields.
This is important for 2 reasons:
Therefore, I'm building my own wrapper for multi step forms, that uses simple divs, and tracks visibility of each step.
Everything works fine, and I'm able to move between steps.
I now want to block users from moving to the next step if the fields of this step aren't valid.
I'm able to track that using:
The only problem that I'm facing, is how to actually show the validation messages when the step is invalid.
Basically I want to be able to do the same thing that form group or list do.
I see in the docs that this is not a best practice. But I consider this a legit case.
Any ideas?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions