How do you avoid write decimals in the text field?

HOW TO AVOID DECIMALS IN TEXT FIELD

In a text field I only want to put integers

I would like to avoid putting

the dot (.)

symbol (+)

symbol (-)

image

image

image

See here, posted 2 hours ago:

1 Like

this block does not prevent you from writing

but if you delete it

but it doesn't work for me with the (+) symbol

image

Try to use this guide from that topic and this is very simple for the new beginner users.

Have you set the textbox to numbersOnly?

Use this procedure below :

If you want to make readOnly Textbox on error(Not Whole Number) use above readOnly Textbox to true.
Also can do with Enabled to false.

If you want to hide keyboard use this :point_down:

HideKeyboard

yes

Then how are you typing in a + ? It is not available on my number keyboard on my devices.

image

2 Likes

I am working on an android emulator on a desktop pc

It should not make any difference, that keyboard screenshot was from my emulator, Genymotion.

Test on a real device.

I am using the physical keyboard of the PC

Me too

Was you used this method?

There is a problem here when I write the symbol (-)
verified

What is the problem tell me?

the cursor goes back
or go to the next text field
does not write other numbers

simulate the sent block

Remove the block for it MoveCursorToEnd

Remove this below as it is to remove -

sorry I had the number pad locked

this block model is good for pc keyboard and android keyboard

This model is also good but it is only for Android keyboard where the (+) symbol does not appear.

but what I was looking for was for both

ok