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

[Question] Quit does work when using dynamic buttons

Open radennis opened this issue 9 years ago • 10 comments

Pre-flight checklist


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 avatar May 25 '17 09:05 radennis

@radennis are you using .NET or Node SDK?

nwhitmont avatar May 25 '17 16:05 nwhitmont

.Net

radennis avatar May 25 '17 16:05 radennis

Can you please upgrade to the latest Bot Framework 3.8.1 and see if your problem persists?

JasonSowers avatar May 25 '17 17:05 JasonSowers

@radennis are you still having this issue?

JasonSowers avatar May 31 '17 23:05 JasonSowers

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 image

Please assist

radennis avatar Jun 07 '17 09:06 radennis

Any update on this issue?

radennis avatar Jun 12 '17 12:06 radennis

None as of yet

JasonSowers avatar Jun 12 '17 15:06 JasonSowers

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 avatar Jun 13 '17 11:06 radennis

@radennis we are looking into it, we will let you know as soon as we have more information for you.

JasonSowers avatar Jun 13 '17 15:06 JasonSowers

@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.

EricDahlvang avatar Jul 03 '17 22:07 EricDahlvang