6

I would like to create a choice prompt in Node.js that allows the user to make multiple selections, just like in FormFlow for .NET (see the toppings prompt of the Simple Sandwich Bot).

Is there maybe already some sample code available that I could adapt? Would this also be possible with buttons instead of a list?

Weili Gao
  • 169
  • 1
  • 10
  • 1
    I'm also looking for the multiple choice prompt for the Microsoft Bot Framework. if you found anything please answer your question. thanks – Mukesh S Feb 16 '17 at 11:55
  • One possible way to do this is to use the Customize Prompt with a Simple Dialog. – It's actually me Jul 02 '17 at 11:27
  • Maybe we could give some more attention to the implementation of this feature. Please express your interest @ https://github.com/Microsoft/BotBuilder/issues/2091 – an0o0nym Sep 13 '17 at 18:16
  • Possible duplicate of [Can FormFlow Dialogs be built with Node.js?](https://stackoverflow.com/questions/36925856/can-formflow-dialogs-be-built-with-node-js) – Sam Hanley Nov 04 '17 at 02:16

2 Answers2

0

This feature is not currently available in the Node.js SDK for BotBuilder. It is only available in the .NET version. related question

nwxdev
  • 4,194
  • 3
  • 16
  • 22
-2

maybe you are looking for sth like this? npm install prompt --save

although, it doesnt have a button, for that u would need and interface, ui, but not a prompt in a command console

var prompt = require('prompt');

prompt.get(['choice'], function(err, result) {
    if (result.choice == "0") {
          //selects multiple choice 0
    }
});
Leandro
  • 180
  • 4
  • Hi Leandro, thanks, but I am looking for a multiple choice prompt for the Microsoft Bot Framework, and not node.js in general. – Weili Gao Jan 24 '17 at 00:16