.netazurebotframeworkazure-bot-servicecsx

Using the PromtDialog.Text just shows the text and not a textarea?


Ì'am trying to create a promptDialog were the user inputs some text.

Documentation for PromptDialog

Code:

  PromptDialog.Text(
            context,
            ResumeAfterAnswerAsync,
            "What is your name?",
            null, 5);

When this is triggered it only show up as a basic reply from the bot with the message: "What is your name?" like the image below. What I expected was a textarea in a dialogbox. Kind of like the prompt dialog Confirmation dialog you can see at the bottom of the screenshot, only with a input field.

Screenshot of bot emulator

Is this behaivor by design? Meaning that the next message sent to server is the input. Or am i doing something wrong here?


Solution

  • This is by design. Having a text area doesn't make sense as most of the channels won't be able to render it.