Drop-down
The drop-down menu is a clear method of showing a list of data, allowing users to pick their choice from the list.
Attributes | Mandatory | Description | Values |
type | Yes | The type of input to be displayed to the visitor | drop-down |
options | Yes | An array of options you would like to display | [ Note: You can enter a maximum of 20 options in the array, |
placeholder | No | Custom text for option search placeholder | Search for a plan |
multiple | No | To select multiple values | true |
select_label | No | Custom text for the dropdown label, for multi-select dropdown | Pick your plan |
min_selection | No | Minimum selection | 2 |
max_selection | No | Maximum selection | 4 |
Use Case:
Copied{
"platform": "ZOHOSALESIQ",
"action": "reply",
"replies": [
"please select your plan"
],
"input": {
"type": "drop-down",
"placeholder": "Choose the plan",
"options": [
{
"value": "0",
"label": "Premium"
},
{
"value": "1",
"label": "Basic",
"selected": true
},
{
"value": "2",
"label": "Enterprise"
}
],
"select_label": "Select",
"multiple": true,
"min_selection": 1,
"max_selection": 3
}
}