Sorry, the appearance should be "numbers", not "number".
The form was confusing because which entry was reporting the error message
was unclear (it could have referred to either field).
After some tweaking, a working form is here http://pastebin.com/26vUndeD
Integer values are restricted to 9 digits or less, so you will need to use
a string to hold 10-digit or larger numbers. Whenever you use an int or
decimal bind, the field value is first interpreted as number and stored
internally as such.The constraint then converts that internal number to a
string (omitting leading zeros), and applies the regex to that string. So
if it is an int or decimal bind, you can only test for up to 9 digits,
because of the removal of the leading zeros, and the 9-digit limit on the
size of the number.
The string bind retains all the leading zeros, because it is never
interpreted as a number. The regex form is defined here:
On Tue, May 29, 2012 at 1:40 AM, dj_bridges wrote:
It would seem that this would be simple to fix, but for whatever
reason, the form is not behaving as it apparently should. Here is a
link to a pared down version of the form: http://pastebin.com/qLX4rrhV
I have tried every combination of type="int" / type="string",
appearance="number" and many different regex, but none allow 10 and
only 10 digits to be entered. If type="string" then the alphanumeric
keyboard appears rather than the numeric one and letters can be
Does anyone have a form with the desired behaviour so that I can see
if it is something on my phones (tested it on two phones running 2.2
and 2.3 Android versions so far)?
University of Washington