Let me just add a comment. If there's just six digits, do away with "-"
Thanks Yaw
I t doesn't work on my device, Android ICS 4.03, had to take the last
option of specifying text and only allowing numbers and a few other chars.
I have to select the number keyboard however, would be much better if it
presented itself to speed up the process. Form is going to be used to
document patient records at the 2 Oceans marathon in Cape Town next week.
Bash
On Fri, Mar 22, 2013 at 7:39 PM, Yaw Anokwa yanokwa@nafundi.com wrote:
Bashir,
Attached is a sample form that shows you the integer prompt, text prompt,
and a text prompt with numbers. On my device, I can type numbers and commas
on the last prompt, but only numbers on the first prompt. If this doesn't
work on your device, you might just want to use a plain old text prompt but
then use your regex to only allow numbers (as it does in your example).
Yaw
Need ODK help? Go to http://nafundi.com for custom development, form
design, implementation support, and user training for ODK.
On Fri, Mar 22, 2013 at 7:54 AM, Bashir Jahed admin@osilab.net wrote:
Hi Yaw
Thanks for that but it didnt seem to work, still shows same as pervious,
below is a snippet from my excel file..:
text rhr Record Resting Heart Rate regex(., '{6}$') Sorry, number
of characters for this field is limited to 6, please check the amount of
characteres and recitify ${pe}='pe1' numbers yes
On Fri, Mar 22, 2013 at 4:43 PM, Yaw Anokwa yanokwa@nafundi.com wrote:
Bashir,
Instead of integer, use a text prompt. Then set the appearance of that
prompt to "numbers".
Yaw
Need ODK help? Go to http://nafundi.com for custom development, form
design, implementation support, and user training for ODK.
On Fri, Mar 22, 2013 at 7:40 AM, Bashir Jahed admin@osilab.net wrote:
Thanks Nik
That did the trick for the constraint. Been looking at the link you
sent but
cannot see how i present a full numeric keyboard instead of the one that
shows 0-9 and a -
any pointers?
Bash
On Fri, Mar 22, 2013 at 1:15 PM, ゴー・ニコライ nikolai.go@gmail.com wrote:
You are looking for "regular expressions" as constraint. The following
only accepts 6 numeric digits:
regex(., '{6}$')
More info at: http://opendatakit.org/help/form-design/binding/
Nik
On Friday, March 22, 2013, Bashir Jahed wrote:
Dear All
Been making some fair progress on a fairly large form. I am stuck with
a specidifc function. I need to have a number input that has a maximum
of 6 characters that has a full numeric keyboard with commas etc. How
do i specify this as when I specify integer i only get numbers and -
Also where do i find examples on how to constrain the field to accept
only 6 characters?
Thanks
Bash
--
Post:
--
--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en