Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with nested form fields and default form values in this.state #2

Open
unuigbee opened this issue Jul 7, 2016 · 2 comments
Open
Assignees

Comments

@unuigbee
Copy link

unuigbee commented Jul 7, 2016

I'm building a multi step form and i'm having a bit of trouble understanding how to get this to work with nested form field sections. Example: Form Container

@ffxsam ffxsam added the question label Jul 7, 2016
@ffxsam ffxsam self-assigned this Jul 7, 2016
@ffxsam
Copy link
Owner

ffxsam commented Jul 7, 2016

Hmm, you're right, Formous wasn't really built with multi-stage forms in mind. It won't work because if you have a submit button for step 1, it will run tests on required fields in steps 2, 3, etc, and fail, and you won't get the values you need. And you can't break up the fields either.

I've got an idea that could work: have a helper function that will let you run tests on a specific group of fields only, and possibly get their values if you need to store them temporarily in state. I'll add that when I get some spare time!

@unuigbee
Copy link
Author

unuigbee commented Jul 7, 2016

Aww that's unfortunate. But thanks for the insight. Can't wait for the feature though!

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

No branches or pull requests

2 participants