justinmind-logo
 
Upvote 2

numeric keyboard

Answered Victor Conesa 10 years ago

Hello,


How i do for convert a text field in a numeric type? my application should accept just numeric characters, and enable just the numeric keyboard.

Best Answer
photo

Select the Input Text Field widget and look to the Properties palette. You can then change the input type to numbers.

5e9eec4f675f2df89bdae456b15721e4

Replies (7)
photo
1

Drag and drop text widget and a label into canvas. Then add a condition to the text widget. When input is number only hide the label, otherwise show the label. Look at the screen shot. The condition is basically 'RegEx(text widget, isNum)'


'isNum' is a regular expression under Constants tab.


9163fed72a8331faddd81c7b463dc138


photo
1

Hello John,


I understand you, but I would like something like this:


79d437ee2be7c271c9c38e7bdaf5977b


Could help me?

photo
1

Please take a look at this topic, https://www.justinmind.com/community...

photo
1

Hello John,


It is not my intention, I would like to use the numeric keypad Safari, rather than building a new keyboard, it would be possible use a numeric type into a text box.


There is no other way?

photo
1

Jonh,


I managed to solve the problem including a HTML widget with the following code:


input type="text" pattern="d*"


See:


eeeeb81d43c45ec77b966bb474ffd1ca


But now I can not enable the keyboard in "simulation" and I can not play the field values in my variables.


How to solve this?

photo
1

I know it has been a while. Did you provide a solution to Marcos? I'd like to do something like have a ZIP code input field that brings up the numeric keyboard instead of the full keyboard.


It would be ideal if the Input text properties tab has "numeric" in addition to text, textarea and password.


2463b06b9f5c12730a230a623610dca6

photo
1

Select the Input Text Field widget and look to the Properties palette. You can then change the input type to numbers.

5e9eec4f675f2df89bdae456b15721e4

Leave a Comment
 
Attach a file