Text List Picker
- 05 Jun 2024
- 2 Minutes to read
- Contributors
- Print
- DarkLight
- PDF
Text List Picker
- Updated on 05 Jun 2024
- 2 Minutes to read
- Contributors
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Text Picker Message can be used as a menu, list of products or services, and so on. With Text Picker Message, you can create a text list of items, allowing users to choose from a range of options, present multiple choices, facilitate decision-making, enhance user interaction, and streamline selection processes.
For more information on Text Picker Message, go to the official documentation of Apple Messages for Business: List Picker Message.
Example
Below, you can see the textListPicker task reference in the Attachments State Diagram.
{
"abc": {
"type": "text_list_picker",
"list_picker": {
"sections": [
{
"items": [
{
"identifier": "/textListPicker",
"order": 0,
"title": "📜 Text List Picker",
"subtitle": "",
"style": "small"
}
],
"order": 0,
"title": "⚙️ {{t'mainMenu}}",
"multipleSelection": false
}
],
"receivedMessage": {
"title": "⚙️ {{t'mainMenu}}",
"subtitle": "",
"style": "small"
},
"replyMessage": {
"title": "Ok",
"subtitle": "",
"style": "small"
}
}
}
}
Parameters
In the table below, you can see List Picker Message parameters and descriptions.
Parameter | Type | Required | Description |
---|---|---|---|
type | string | + | A type of an object to send. |
list_picker | object | + | An object in which all List Picker Message parameters are described. |
list_picker.sections | array | + | An array of sections - sections. |
list_picker.sections[].items | array | + | An array of items. |
list_picker.sections[].items[].title | string | + | An element title - item. |
list_picker.sections[].items[].subtitle | string | An element subtitle - item. | |
list_picker.sections[].items[].identifier | string | + | An item ID sent to Corezoid when it has been selected by the client. |
list_picker.sections[].items[].style | string | Defines an item style. The default value is "icon". Available values: "icon", "small", and "large". | |
list_picker.sections[].items[].order | integer | A sequence number of an item in the "items" list. | |
list_picker.sections[].order | integer | A sequence number of a section. | |
list_picker.sections[].title | string | + | A section title. |
list_picker.receivedMessage | object | + | An object that describes a received message of a list items selected by the user. |
list_picker.receivedMessage.title | string | + | A title displayed when a client receives a message. |
list_picker.receivedMessage.subtitle | string | + | A subtitle displayed when a client receives a message. |
list_picker.receivedMessage.style | string | + | Defines an item style. The default value is "icon". Available values: "icon", "small", and "large". |
list_picker.replyMessage | object | + | An object in which is described how to display a message after a response. |
list_picker.replyMessage.title | string | + | A title displayed when the user has sent the message. |
list_picker.replyMessage.subtitle | string | + | A subtitle displayed when the user has sent the message. |
list_picker.replyMessage.style | string | + | Defines an item style. The default value is "icon". Available values: "icon", "small", and "large". |
Adding item
To add an item to Text List Picker, the following object needs to be added to the items[]
array:
{
"identifier": "2",
"order": 2,
"title": "Option 2" ,
"subtitle": "Subtitle for option 2" ,
"style": "small"
}
Was this article helpful?