formous icon indicating copy to clipboard operation
formous copied to clipboard

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

Open unuigbee opened this issue 9 years ago • 2 comments

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

unuigbee avatar Jul 07 '16 10:07 unuigbee

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!

ffxsam avatar Jul 07 '16 18:07 ffxsam

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

unuigbee avatar Jul 07 '16 19:07 unuigbee