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 the Present options step of the bot builder or use a custom drop-down field combined with the Ask for details step of the bot builder.
- The Present options allows the bot to display up to ten values. See the images below as an example.
- A drop-down list combined with the Ask for details step allows the bot to display more values than the Present options. See the images below as an example.
For more information, see the article: About bot builder.
2 comments
Mike Landers
I understand the complexities of adding regex, but I find it strange that it doesn't support a numeric field. This is very limiting.
4
Fredrik
Not having support for numeric fields is baffling, would like to hear a comment from Zendesk on this.
When checking the API response for listing fields it looks like “numeric” fields actually uses regex: 'regexp_for_validation': '\\A[-+]?\\d+\\z',
Meaning a valid “numeric” value could be: +01 which is a bit insane.
This in combination with not being able to change the type of a field and having no options for migrating data from one field to another is insanely limiting for adoption.
0