Video unavailable. Open the source below.
NewJevForm
A form changes its next question dynamically instead of relying on a large fixed if/then tree.
Video unavailable. Open the source below.
NewA form changes its next question dynamically instead of relying on a large fixed if/then tree.
After each form answer, Jev judges which question should come next. json-render supplies the interface and XState manages the form's state.
The form records the user's response in its state.
Jev judges what to ask next using the answer and current form state.
XState manages the resulting state transition.
json-render supplies the form interface for the selected next question.
It uses a typed decision to choose the next form question while keeping interface rendering and state transitions in separate tools.