appearance=numbers
Note: this appearance setting changes the Keyboard style of the pop-up
keyboard to the calculator / number keyboard when you attempt to enter data
into the field. It does not prevent non-numbers from being entered. This
relies upon the device's keyboard supporting and reacting to this setting (
http://developer.android.com/reference/android/text/InputType.html#TYPE_NUMBER_FLAG_SIGNED
).
You need to add a constraint restricting the input string to something that
looks like a phone number.
e.g.,
for a ten-digit number:
regex(${mobile},'[1]{10}$')
···
On Tue, May 10, 2016 at 10:17 PM, Sergio Del Villar wrote:Greetings!
I'm trying to use regex, but, appearance is not showing as numbers only,
could anyone provide further assistance -seems this is a very old thread-?
I want a mobile number only as answer
type= text name= mobile number label=Mobile Number required=yes
constraint_message=10 digit number! appearance=numbers--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en
You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com
0-9 ↩︎