BotBuilder: Customize Formflow

吃可爱长大的小学妹 提交于 2019-12-13 07:48:03

问题


can you suggest me which configuration need to be set to change the "What do you want to change?" after saying no in confirmation at the end of the formflow? Thx


回答1:


That message is part of the of the TemplateNavigation resources and a Template in the FormConfiguration class is defined with the TemplateUsage.Navigation as seen here.

The way to go is partially explained here with the only difference that you need to change the Template to look for and that you don't need to change any command of the FormConfiguration

private static IFormBuilder<T> CreateCustomForm<T>() where T : class
{
    var form = new FormBuilder<T>();
    var templateAttribute = form.Configuration.Template(TemplateUsage.Navigation);
    var patterns = templateAttribute.Patterns;
    patterns[0] = "My prompt";
    templateAttribute.Patterns = patterns;

    return form;
}


来源:https://stackoverflow.com/questions/43848137/botbuilder-customize-formflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!