How to limit an input with integer format?

I need to put a character limit on an input that has an integer format, that is, it does not allow me to write more than a certain amount of characters.

it’s possible?

I think you can use min and max value? If you set max 99, the max characters will be 2

1 Like

Do you mean input’s “set a range” property?
Screenshot 2024-03-13 at 23.20.27

It will highlight input (and make it isn't valid so we can use this in our app logic further), but will not prevent user from typing more than 2 digits:
Screenshot 2024-03-13 at 23.21.46

Another option is to use “text” type of content for the input:
Screenshot 2024-03-13 at 23.26.18
But you’ll need to apply :converted to number operator while saving input’s value to a field of type “number” in your DB.

1 Like

Good point. The problem with text field however is that user can enter something else like .1 that can be converted to number. However, Bubble offer a “Text (number only)”. This is what need to be selected here if you choose this option

2 Likes