Hacker News new | ask | show | jobs
by throw03172019 2487 days ago
Looks nice! Our forms have a lot of logic where certain answers hide/show other fields/sections. Does this have the ability to swap the schema/form fields on the fly?
1 comments

JSON schema has in one of it's drafts a way to define business rules like these, no idea if this library supports it (most likely not)

On a previous project I needed something like this and used react-json-schema as a form renderer and created my own rule engine that evaluated a lot of rules defined in a custom format I needed.

The result was a generated schema that was rendered by react-json-schema.