[Question] Quit does work when using dynamic buttons
Pre-flight checklist
- [x] I posted a question about this issue on Stack Overflow using the tag
botframework. - [x] I have searched the existing issues before logging a new one.
System Information (Required)
- SDK Platform: WebChat
- SDK Version: 3.5.2
- Development Environment: Azure App Service
Issue Description
We are using Bot Framework, FormFlow. In one of the question, we ask the user whether he would like to continue and then present one of the buttons he can press is Quit. When pressing it, he exists the form.
This works well, only sometimes for some users we noticed it does not work and presents them "'Quit' is not a continue form option" in a different language. We suspect the issue happens only with customers from countries that do not speak english and the BotFramework has a different notion for quit and therefore doesn't accept it.
Any idea what we can do to avoid it?
Thanks!
Here's the code that generates that hero card:
// Here we add the ContinueForm field with options of quit and yes
public static IForm<ChangePermissionForm> BuildForm()
{
return CreateCustomFormBuilder<ChangePermissionForm>()
.Field(new FieldReflector<ChangePermissionForm>(nameof(ContinueForm)).SetPrompt(new PromptAttribute($"Do you still want to continue {c_continueTicketMessage}? {{||}}")).SetActive(IsGetPermissionsActive))
.Field(nameof(PermissionAction))
.CompleteSupportRequestForm();
}
// this is the definition of the field, to be able to have quit as an option
[Prompt(c_continueMessage + c_continueTicketMessage + "? {||}")]
[Template(TemplateUsage.NoPreference, "Quit")]
[Optional]
public ContinueFormOptions? ContinueForm { get; set; }
public enum ContinueFormOptions
{
Yes
}
@radennis are you using .NET or Node SDK?
.Net
Can you please upgrade to the latest Bot Framework 3.8.1 and see if your problem persists?
@radennis are you still having this issue?
Yes we are having this issue and also users that are from the US reported that they got the yes/no buttons, when using a confirm action, in Chinese.
See client activity id:DJIw1c16KCb7VXkZlxqhxM

Please assist
Any update on this issue?
None as of yet
Ok, would very much appreciate your help. Even just a workaround to disable the localizer since this issue happens more and more and our customers are complaining. Thanks!
@radennis we are looking into it, we will let you know as soon as we have more information for you.
@radennis We've been unable to reproduce the issue you're seeing. There was a fix for FormFlow FieldReflector a couple weeks ago: https://github.com/Microsoft/BotBuilder/pull/2990/files
Please try upgrading to 3.8.3 and let us know if your issue is resolved.