Im trying to build a reduxform wherein I have a parent page , and step1 , step2 components like the redux form example on the site.
Step1 has a dropdown with 2 values - lets say 'A' and 'B' Step2 has a couple of form input details If I have value 'A' in the step1 dropdown - I continue step2 with a post request to nodejs/mongo and redirect to a success page
(Main Question now: - How do I do the below)
If i have value 'B' in step 1 - The Step2 should continue to a Step3 -- and then at somepoint post to DB etc
How do i split the wizard flow ? Any leads much appreciated - Im v v new to react/redux and reduxforms and on a deadline .. apologies for the 'noob'ness
The
onSubmit
func receives the values of the form that is being submitted:In the example each step uses the same form
'wizard'
sovalues
contains the state from all wizard steps. You can use this to determine the next step: