Open crutchcorn opened 1 year ago
Just wanted to leave some additional context: We sometimes have quite complex forms that have a lot of fields that are only visible on a certain condition, say for example a billing and a delivery address, they are basically the same, but one is only used under the condition that the two are not the same. So FormGroups can be a great way to structure a form as well.
+1
At AWS, a common pattern we implement is a “Wizard” pattern which guides a user through a multi-step form.
Example: https://cloudscape.design/examples/react/wizard.html
I'm currently working on a multi-step form, similar to a wizard. The proposed form.FormGroup
component would simplify the code a lot.
@timothyac we're not quite ready for this feature yet as part of our 1.x release, but we'll work on it soon after!
That said, I'd love to help the AWS team figure out how to integrate Cloudscape with TanStack Form when it's ready. If y'all need any help with anything, let me know (even via DMs - they're open)
Any update on the feature? Or a way to make this work?
Description
When building a form stepper, like so:
It's common for each step to have its own form. However, this complicates the form submission and validation process by requiring you to add complex logic.
Ideally, it would be nice to have a FormGroup where you could validate the group, but not the form itself -
submit
the value and move on to the next step.Describe the solution you'd like
What if there was something like this psuedo-API?