How to bypass Form Flow's "did you mean" when user gives exact string

74 views Asked by At

One of the fields in my form flow provides the options: "None", "1", "2", "3", "4", and "More than 5". When I choose option "3" it asks me "Did you mean "3" or "4"?"

enter image description here

Is there a way to bypass "did you mean" when the provided answer already has an exact match in the options?

Is my only option to change the wording/format of my options?

1

There are 1 answers

0
Nicolas R On BEST ANSWER

Short answer for FormFlow and Dialogs cases:

When you type "4" your Prompt has a doubt between the 4th value based on a 1-indexed list (so the value "3") and the value "4" which is a match in your options.

If you specify a dedicated "recognizer" for your field, you should avoid this problem (see doc here)

Note: there is a similar problem when using PromptDialog.Choice in Dialog, not in FormFlow. Using boolean properties recognizeChoices, recognizeNumbers and recognizeOrdinals is helpful in that case.

Long answer for Dialogs case:

You are facing a case where your values are also a number.

The prompts used to display the choices (which are PromptDialog.Choice items) have the capacity to analyse the value that you provide by several means:

  • Recognize choices: the prompt will attempt to recognize the selected value using the choices themselves
  • Recognize numbers: the prompt will attempt to recognize numbers in the users utterance as the index of the choice to return
  • Recognize ordinals: the prompt will attempt to recognize ordinals like "the first one" or "the second one" as the index of the choice to return.

By default, all the recognizer are enabled. See their use in the framework here

Disabling "numbers" recognizers will fix your problem