guillotinaweb / ngx-schema-form

HTML form generation based on JSON Schema
MIT License
485 stars 173 forks source link

Rules and workflow in json-schema? #362

Open thardy opened 4 years ago

thardy commented 4 years ago

Are there any examples or modules for placing basic logic rules into json-schema? e.g. "If the answer to question 2 is yes, make questions 10-12 visible". Just wondering if flow control and rules are addressed anywhere by json-schema or if anyone has pioneered any work in that space.

daniele-pecora commented 4 years ago

The widget library ngx-schema-form-widgets-material based on Google Material Design contains a Wizard widget that might do what you need here.

You may have a look at the demo page click here , especially for the tab Complex types

I did create this library and due tue lack of time it is poorly documented. (The documentation is contained in the widgets html template files)

aahventures commented 4 years ago

@daniele-pecora I saw this wizard widget before and was wondering if you could explain what it is for and how to exactly use it? I'm not sure from just looking at the demo.

daniele-pecora commented 4 years ago

@aahventures you might look into the source code folder _forms/...