Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 490 Bytes

conditional-blocks-rendering.md

File metadata and controls

19 lines (15 loc) · 490 Bytes

Dynamic Blocks Rendering

You can easily show, hide, add or remove 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.