mrkkrp/forma

Dependent fields

k-bx opened this issue · 2 comments

k-bx commented

My form has a boolean checkbox, which, when checked, should render and validate a second part of the form. Am I understanding correctly that this isn't supported via forma currently and I'd need to move all the validation of that second checkbox-enabled part of the form into some post-processing?

Thank you!

Hi, you can do that with the withCheck function.

k-bx commented

Yeah, should probably work.