Can I limit a TEXT_FIELD to only numeric characters?

I have a TEXT_FIELD where I want the user to be able to enter only digits. Is it possible to do this using the “format” property? I tried with “#”, but if I place “###” it allows me to enter only 3 digits, if I place “######” it allows me only 6 digits, and so on. I want the user to be able to enter any number of digits.

Thank you,
Gabriel.

Did you try “#####################” ?

Yes, I did.

If I place N characters of ‘#’, then the field expects me to enter exactly N digits. It goes red if I enter less than N digits.

If you want the user to only enter digits, why don’t you change the filed type into an integer?

Other solution might be building an onFocusLost script that filters any chars.