Skip to content
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.

How to get the form datas of each step #17

Open
iamsajithsasi opened this issue Oct 8, 2020 · 5 comments
Open

How to get the form datas of each step #17

iamsajithsasi opened this issue Oct 8, 2020 · 5 comments

Comments

@iamsajithsasi
Copy link

I'm wondering, how the data of each form/steps needs to be obtained. Thanks

@iamsajithsasi
Copy link
Author

iamsajithsasi commented Oct 8, 2020

function form1Data() {
// what is the method to get the form1 datas ?
}

function onFormSubmit() {
// what is the method to get the form datas ?
}

const step2Content = (

...some fields... )

const step1Content = (

...some fields... )

<StepProgressBar
startingStep={0}
onSubmit={onFormSubmit}
submitBtnName="Add Company"
steps={[
{
label: "1",
name: "StepForm1",
content: step1Content,
validator: form1Data,
},
{
label: "2",
name: "StepForm1",
content: step2Content,
},
]}
/>

@saini-g
Copy link
Owner

saini-g commented Oct 9, 2020

@iamsajithsasi this feature is not yet implemented, would it be possible for you to raise a PR??

@nurinfazil
Copy link

@iamsajithsasi did you find a workaround? I'm having the same problem.

@iamsajithsasi
Copy link
Author

iamsajithsasi commented Dec 8, 2020

@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

@fernando-pineda
Copy link

I made this:

https://pastebin.com/J6AQUBEu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants