Few questions around ChoiceStyle and HTML support
I have few queries around Microsoft bot .Net framework
- Is it possible to set ChoiceStyle on the basis of channel (i want it PerLine for web chat and buttons for Skype and messenger)
- I want to render numbers with choices on buttons, how to achieve it? (Like 1.Choice1 , 2. Choice2)
- Is it possible to return a link or HTML in ValidateResult in form flow(I used FeedbackCard and able to return an image)
- 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.
- Is it possible to return HTML to channels on form completion?
- Pdf attachment is not working in web chat any suggestions?
Thanks, Dhiraj
_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
@willportnoy or @msft-shahins can you comment on 1-3?
Regarding number 3, I don't think FormFlow's ValidateResult allows complete flexibility in the feedback message. It's possible that markdown might work.
Here are answers to questions that are not covered yet:
- you can look at the channelId of the incoming activity and set the ChoiceStyle based on the channel when you create the prompt dialog.
- you can implement your custom prompt styler that implements its custom Apply function to generate the buttons with the appropriate title.
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 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.