How do I Make sure that textbox only have numbers, not text

Get help using Construct 2

Post » Fri Jan 29, 2016 11:50 am

Hi all,
In properties of textbox, if I give type as number, then it only accepts number.
It is fine in chrome but in IE and firefox it is taking text also.
How do I make sure that it only accept numbers in Chrome, IE and Firefox.

Also is there any way to remove those up/down arrows.

Image

Image
B
10
S
2
Posts: 20
Reputation: 694

Post » Fri Jan 29, 2016 12:11 pm

For checking whether it's a numeric value or string you can use System -> Is value type.
Regarding styling (arrows), TextBox you have to style with CSS. There is something mentioned here: http://stackoverflow.com/questions/2337 ... firefox-29
ImageImageImage
B
27
S
16
G
73
Posts: 974
Reputation: 41,157


Return to How do I....?

Who is online

Users browsing this forum: fearfulelephants and 14 guests