Avatar

Level 7

Firstly if you are only allowing numbers then the field should be a numeric field not a text field. You can use patterns to allow only whole numbers or to have 2 digits on either side of the decimal.

In regards to the number of digits you can use the len function to determine the length of the data and if it is too long give a message or clear it.