formbuilder icon indicating copy to clipboard operation
formbuilder copied to clipboard

Add support for conditional fields

Open almet opened this issue 9 years ago • 8 comments

I've opened a series of issues more to start a discussion about certain features than to tell it should be done. This is one of them and we need to decide if we want to have it or not.

almet avatar Oct 19 '16 20:10 almet

Conditional fields are sometimes useful, but seems to be technically complicated to do, especially with the use of JSON Schema. My personal belief is that we should avoid having them in the formbuilder unless we really need them.

almet avatar Oct 19 '16 20:10 almet

Duplicated #133

rlecellier avatar Oct 19 '16 20:10 rlecellier

Nope, these two are different :-)

almet avatar Oct 19 '16 20:10 almet

@almet : you mean you display a question for instance based on the previous answer?

DirtyF avatar Oct 19 '16 20:10 DirtyF

Yes, that's what I mean!

almet avatar Oct 19 '16 21:10 almet

I'm not sure we want this, unless we find a really easy way for the user to get over it.

almet avatar Oct 20 '16 17:10 almet

At least having children elements would be great. RJSF supports it out of the box, it's only a matter of passing the right schema to it.

mehdisadeghi avatar Apr 26 '17 08:04 mehdisadeghi

@mehdisadeghi please, if you have any idea on how to make this happen, send a pull request or mockups and we'll consider it.

almet avatar Apr 26 '17 12:04 almet