Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 478 Bytes

conditional-blocks-rendering.md

File metadata and controls

19 lines (15 loc) · 478 Bytes

Conditional Blocks Rendering

You can easily show/hide questions based on form answers. You have 2 useful hooks that you can use for that:

useFormAnswers

Retrieves form answers

const formAnswers = useFormAnswers();

useFieldAnswer

Retrieves the field answer

const fieldAnswer = useFieldAnswer(fieldId);

Example

Please view this codesandbox example for more details.