2
0

📝 Add "How to" section in Buttons block doc

This commit is contained in:
Baptiste Arnaud
2022-12-23 14:34:15 +01:00
parent 752e78cea2
commit 11ff7eab56
3 changed files with 28 additions and 0 deletions

View File

@ -53,3 +53,31 @@ Link the "Default" item to determine the default path independent of what the us
</video> </video>
} }
/> />
## How to
### Add a "Other" button
Sometimes you want to allow your user to enter a value that is not in the predefined choices. You can do this by adding a "Other" button and connect it to a "Text" input block.
<img
src="/img/blocks/inputs/buttons-other.png"
width="100%"
style={{ maxWidth: '900px' }}
alt="Other button flow"
/>
### Different replies based on multiple choices
If you'd like to have different replies based on the multiple choices the user selects. You will need to
1. Save the answer into a variable.
2. Add a "Condition" block
3. Add comparisons based on the value of this variable
<img
src="/img/blocks/inputs/buttons-condition.png"
width="100%"
style={{ maxWidth: '900px' }}
alt="Condition multiple button flow"
/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB