Max digits

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.

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, only the first 3 digits of that input will be pasted
  • 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, ManageEngine AppCreator 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: percent, currency, and decimal. When a user enters a decimal value, ManageEngine AppCreator 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.

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: appcreator-support@manageengine.com