Question
Can I add a numeric field or a regular expression (regex) field using the bot builder?
Answer
No, the bot builder only supports text and drop-down fields. Numeric fields and regex fields aren't supported. See below for alternative options to this.
As a workaround, if the numeric values can be predefined, use thePresent optionsstep of the bot builder or use a自定义下拉字段combined with theAsk for detailsstep of the bot builder.
- ThePresent optionsallows the bot to display up to ten values. See the images below as an example.
- A drop-down list combined with theAsk for detailsstep allows the bot to display more values than thePresent options. See the images below as an example.
For more information, see the article:About bot builder.
1 Comments
I understand the complexities of adding regex, but I find it strange that it doesn't support a numeric field. This is very limiting.
Pleasesign into leave a comment.