Add Example Of Progressive Disclosure
jbeuckm opened this issue · comments
We need to progressively disclose properties that appear according to if-then conditionals in our json-schema. This does not seem to be possible. The way I think it would have to be done currently is to list all properties at the top level, then conditionally hide the right ones using an arrangement of AutoField
components.
Is there a demo of or known way to implement progressive disclosure?
The way I think it would have to be done currently is to list all properties at the top level, then conditionally hide the right ones using an arrangement of AutoField components.
You're not limited to listing all properties at the top level, but the approach is correct. Have a look at the issue that @piotrpospiech linked (#845). It suggests going with the DisplayIf
field.
For a full demo with a complex condition builder, have a look at https://forminer.com/demo.
I'm also closing this issue due to a lack of activity. Feel free to reopen if needed.