Understand Max Digits for Numeric Fields | Zoho Creator Help

Maximum digits allowed

Understand setting the maximum number of allowed digits in form fields

Applicable to the following fields: number, percent, currency, and decimal.

This property dictates the maximum number of digits that your users will be allowed to enter in the above mentioned fields. The maximum value that you can set for this property is 19. Refer to this page to learn how to set max digits.

Maximum character length validation will be implemented strictly for all your form fields if a record is added via Deluge, API, or email input. This validation ensures that all the records added via various inputs undergo a thorough check for their field characters to ensure they're on par with the predefined character limits that you set, thereby minimizing error handling. 

For example, when you set the Max Digits property for a number field on your form to 3, the below given will be the user experience on your form,

  • When a user accesses it from a web browser:
    • A user will be able to enter up to 3 digits in the field's input area
    • If a user copies an input that has more than 3 digits, and pastes it in the field's input area, an error will be thrown and form submission will not be allowed.
  • When a user accesses it from a phone or tablet:
    • A user will be able to enter up to 3 digits in the field's input area
    • If a user copies an input that has more than 3 digits, they won't be able to paste it. Copy-pasting will work only when the number of digits in the copied input does not exceed the Max Digits value (which is 3 in this case).

While entering a negative number

When a user enters a negative number in the field, Zoho Creator counts the minus character (-) while validating the Max Digits allowed in that field.

While entering a decimal number

Decimal numbers are allowed only in the fields: percentcurrency, and decimal. When a user enters a decimal value, Zoho Creator counts the following three when validating input entered in that field:

  • The number of digits entered before the decimal point

  • The decimal point itself (as a digit)
  • The decimal points value, i.e., the number of digits entered after the decimal point

When a user enters a negative decimal number, the minus character ( - ) is counted in addition to the above given points.