Keeping leading zeros with type int

Probably should have put this with my last question. I've got some 3 digit
input codes of which 012 for example is valid. However if I input 012 and
then come back to look at it it has trimmed off the leading zero. I've also
implemented with a string and regex but its distracting starting with a
alpha keypad instead of the numeric one. Any suggestions? -steve-

Here's my workaround:

Note that the field is a string, but only allows numbers (in this case,
exactly 4) via the constraint.

Stuart

··· On Fri, Feb 4, 2011 at 3:59 PM, Steve Roberts wrote:

Probably should have put this with my last question. I've got some 3 digit
input codes of which 012 for example is valid. However if I input 012 and
then come back to look at it it has trimmed off the leading zero. I've also
implemented with a string and regex but its distracting starting with a
alpha keypad instead of the numeric one. Any suggestions? -steve-

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

(should have read your message before hitting send.)

you obviously have code similar to mine, and yes, its annoying to have the
character keyboard instead of the number keypad.

Stuart

··· On Fri, Feb 4, 2011 at 4:06 PM, Stuart Moffatt wrote:

Here's my workaround:

Note that the field is a string, but only allows numbers (in this case,
exactly 4) via the constraint.

Stuart

On Fri, Feb 4, 2011 at 3:59 PM, Steve Roberts steve@roberts.org wrote:

Probably should have put this with my last question. I've got some 3
digit input codes of which 012 for example is valid. However if I input 012
and then come back to look at it it has trimmed off the leading zero. I've
also implemented with a string and regex but its distracting starting with a
alpha keypad instead of the numeric one. Any suggestions? -steve-

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

Yeah some issue/workaround....

··· On Fri, Feb 4, 2011 at 3:08 PM, Stuart Moffatt wrote:

(should have read your message before hitting send.)

you obviously have code similar to mine, and yes, its annoying to have the
character keyboard instead of the number keypad.

Stuart

On Fri, Feb 4, 2011 at 4:06 PM, Stuart Moffatt stuartmoffatt@gmail.comwrote:

Here's my workaround:

Note that the field is a string, but only allows numbers (in this case,
exactly 4) via the constraint.

Stuart

On Fri, Feb 4, 2011 at 3:59 PM, Steve Roberts steve@roberts.org wrote:

Probably should have put this with my last question. I've got some 3
digit input codes of which 012 for example is valid. However if I input 012
and then come back to look at it it has trimmed off the leading zero. I've
also implemented with a string and regex but its distracting starting with a
alpha keypad instead of the numeric one. Any suggestions? -steve-

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en