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

Add Example Of Progressive Disclosure #1335

Closed
jbeuckm opened this issue May 9, 2024 · 2 comments
Closed

Add Example Of Progressive Disclosure #1335

jbeuckm opened this issue May 9, 2024 · 2 comments

Comments

@jbeuckm
Copy link

jbeuckm commented May 9, 2024

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?

@piotrpospiech
Copy link
Collaborator

Hi @jbeuckm, I think it is a similar issue to #845. Does this solve your problem?

@kestarumper
Copy link
Member

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.

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

No branches or pull requests

3 participants