Skip to main content

[HELP] TextFields NUMBER constrained

1 reply [Last post]
Anonymous

Hi,

I need to allow my user to enter a phone number. I want to use a TextField
so the number can be introduced inline but i do not know how constrains to
numbers.

Any help? Sorry my english.
Thanks in advance.
--
Saludos,
Pablo.
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
iluminacja
Offline
Joined: 2010-01-08
Points: 0

I hope that will help you:

TextField t - new TextField();
t.setInputMode("123");
t.setConstraint(TextField.NUMERIC);