Hi,
I am trying to create a multi-select button, where the user can select two or more values then submit their choices.
I have tried creating a list of items (enumerated) entity where I turned on “Is multi-item.” I am only allowed to select one option.
Also, I tried creating a message using the javascript button template, but unfortunately, I am still unable to select the multiple items. (please see code below). If anyone has experienced this issue, please feel free to share.
var info = [“Button1”, “Button2”, “Button3”];
var message = {
“type”: “template”,
“payload”: {
“template_type”: “button”,
“text”: “Please tell me what about your item is incorrect. \nSelect all that apply.”,
“subText”: “Button Template Description”,
“buttons”: []
}
};
for (i = 0; i < info.length; i++) {
var button = {
“type”: “postback”,
“title”: info[i],
“payload”: “payload1”+(i+1),
};
/* Uncomment this if the button is to redirect to url
var button = {
"type":"web_url", // type can be "postback" if
"url":"URL_TO_REDIRECT",
"title":buttons[i]
};
*/
message.payload.buttons.push(button);
I am a bit unclear on the steps. I have not published the bot; I am still designing. As well I have not downloaded the bot kit. Is there a way to access the SDK folder for a non-published bot? If not will I have to download the SDK bot builder kit for the web?