react-step-progress
react-step-progress copied to clipboard
How to get the form datas of each step
I'm wondering, how the data of each form/steps needs to be obtained. Thanks
function form1Data() { // what is the method to get the form1 datas ? }
function onFormSubmit() { // what is the method to get the form datas ? }
const step2Content = (
)const step1Content = (
)<StepProgressBar startingStep={0} onSubmit={onFormSubmit} submitBtnName="Add Company" steps={[ { label: "1", name: "StepForm1", content: step1Content, validator: form1Data, }, { label: "2", name: "StepForm1", content: step2Content, }, ]} />
@iamsajithsasi this feature is not yet implemented, would it be possible for you to raise a PR??
@iamsajithsasi did you find a workaround? I'm having the same problem.
@iamsajithsasi did you find a workaround? I'm having the same problem.
Nope. Form were removed from dom during next/prev steps. I had to move owing to time constraints
I made this:
https://pastebin.com/J6AQUBEu