Flow does not accept Zero as an Integer?

(JI) #1

Hi All

I can’t get my conversation flow to accept user input of 0 (zero) as a number/integer. All positive numbers work fine

Any ideas?

(Karen Barker) #2

Hi @jerryiversen,

Unfortunately it looks like there is a bug here with the default validation rules. I’ve raised this with the development team, but in the meantime you could use a regular expression such as /^([+-]?[1-9]\d*|0)$/ This will actually allow negative numbers as well

I hope this helps :slight_smile:

1 Like
(JI) #3

Yes, you nailed it! Thanks @KarenBarker