Questions when using multiStep form with dynamic steps/pages
See original GitHub issueHi,
I am creating a multi-step form with dynamic steps/pages and facing some problems.
Here is the simplify code. https://stackblitz.com/edit/react-kw8ntc
The scenario of my case is
- Fill
Reference No.
, - Check
Step 3
, then clickNext
- Fill all fields, then click
Previous
- Uncheck
Step 3
, checkStep 4
, then clickNext
- Fill all fields, and click
Submit
.
The form cannot be submitted. I think it keeps Step 3
error status.
I tried to remove the statuses by using setValue
, setTouched
, setError
but it seems not working.
My questions are:
- Is it a correct way to reset status(values and errors) for specific fields?
- Is there any simple way to remove the whole (step/page)'s values?
- Is there any way to set
keepState
to theStep/Page
instead of fields? - What is the purpose of setting
step
on the field?
Sorry to bother you with so many questions, but thank you for your patience.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Tutorial: Add a multistep form to your page - Microsoft Learn
Allows data collection or update process to be broken up over multiple steps. Provides conditions that dynamically change the flow of the steps ......
Read more >Why You Should Create Multi-Step Forms and How They Can ...
Learn how multi-step forms can help you increase conversions, when you should use them and how to create and embed them on your...
Read more >Yii multi page form wizard best practice - Stack Overflow
In my completely untested example below I am using a the stateful form functionality. Here is an example of what I basically did...
Read more >Multi step forms - Webflow Wishlist
I'd like the ability to create multi step/page forms please. I use webflow for lead generation sites and multi step forms can significantly ......
Read more >The Magic of React-Based Multi-Step Forms - CSS-Tricks
One way to deal with long, complex forms is to break them up into multiple steps. You know, answer one set of questions,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok so I got you! I have refactored and added some cool shit! Stand by for another 20 minutes and I will update the docs!
Is this functionality still available I get redirected whenever I use the link.