botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Few questions around ChoiceStyle and HTML support

Open dhirajgupta1 opened this issue 10 years ago • 6 comments

I have few queries around Microsoft bot .Net framework

  1. Is it possible to set ChoiceStyle on the basis of channel (i want it PerLine for web chat and buttons for Skype and messenger)
  2. I want to render numbers with choices on buttons, how to achieve it? (Like 1.Choice1 , 2. Choice2)
  3. Is it possible to return a link or HTML in ValidateResult in form flow(I used FeedbackCard and able to return an image)
  4. When i have multiple choices Skype render them in 2 columns carousal, is there any way to change the default rendering? I want to render them in a single column.
  5. Is it possible to return HTML to channels on form completion?
  6. Pdf attachment is not working in web chat any suggestions?

Thanks, Dhiraj

dhirajgupta1 avatar Oct 26 '16 11:10 dhirajgupta1

_4. No, it is not supported _5. No, but you can send a link to a html web page _6. I think we are fixing that in next release of web chat

tomlm avatar Nov 03 '16 22:11 tomlm

@willportnoy or @msft-shahins can you comment on 1-3?

chrimc62 avatar Nov 27 '16 00:11 chrimc62

Regarding number 3, I don't think FormFlow's ValidateResult allows complete flexibility in the feedback message. It's possible that markdown might work.

willportnoy avatar Nov 27 '16 01:11 willportnoy

Here are answers to questions that are not covered yet:

  1. you can look at the channelId of the incoming activity and set the ChoiceStyle based on the channel when you create the prompt dialog.
  2. you can implement your custom prompt styler that implements its custom Apply function to generate the buttons with the appropriate title.

msft-shahins avatar Nov 28 '16 23:11 msft-shahins

Thanks Everyone for your valuable response!!

@msft-shahins , For first point I am using Prompt attribute, is it possible with attribute too?

Thanks, Dhiraj

dhirajgupta1 avatar Dec 02 '16 06:12 dhirajgupta1

@dhirajgupta1 I don't think FormFlow's prompt attribute has the same options for channel-specific overloads but @chrimc62 @msft-shahins correct me if I'm wrong.

willportnoy avatar Dec 07 '16 19:12 willportnoy