I am building a mobile app that is not html5 and i would like the input component to be set to accept numbers only. Currently it only allows to to specify text or password.
I am building a mobile app that is not html5 and i would like the input component to be set to accept numbers only. Currently it only allows to to specify text or password.
Ok so what I did was in the onload I set the HTML of the input component to number. It seemed to work but I am wondering if that is the correct was to do this?
That's one way to do it. You can also try using More Properties and set the "type" to the type you need. It's a bug that you don't have more options for selecting type in Properties and will be fixed.
Hello! Let me test it too. I'll let you know about the result.
Please take a look at this http://jquerymobile.com/test/docs/for...
"One major advantage of using these more specific input types if that on mobile devices, specialized keyboards or pickers that speed data entry are offered in place of the standard text keyboard. Support for each input type will vary greatly across platforms, but these generally fall back to a basic text input if not understood."
That fine with me. Iphone and modern Android phones seems to support numbers. And my app wont crash if letters are entered either. But if will really speed up the process when entering time values and general numbers.
I've already reported about this problem. Should be available in the end of March.
Any news on this?
I tried both suggestions... added a property with type, number values ...
No go.
Tried changing the type in javascript unload, but safari complained that type property cannot be changed.
What now? I was hoping to force the device to show the numbers keyboard. It would be much easier to type for the user.
Thanks,
Andreas
Hi Andreas,
You can create text field for entering numbers using Panel component with the following HTML code:
code<input id="numberInput" name="numberInput" type="number" />/code
The component can't be used in mapping and events.
The problem will be solved after the next Tiggzi release.