What is Number Entity?

Numbers entity is meant for collecting numbers within a defined number of digits. You can have a minimum and maximum range of digits.

In the above image, you can see a number-type entity. The following image shows the range of digits it can accept. If a user inputs anything more or less than the range, it is treated as an invalid value.


Warning

  • The Number entity fails to capture 0, if it is the starting number. 
  • Example: 
    • If you want to capture the number 0171. The Number Entity would ignore the first 0, and will just capture it as 171, which is a 3 digit number.
    • In case, the number is 0000, the Number Entity will not capture the number at all. 
  • The solution for this is, Use Regex Entity, if you want to capture an OTP or any field, that might have 0 at the start.

Can’t find what you’re looking for? Email us at support@haptik.ai.