Full numeric Keypad and Constraint

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

You are looking for "regular expressions" as constraint. The following only
accepts 6 numeric digits:

regex(., '^[0-9]{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: opendatakit@googlegroups.com <javascript:;>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com <javascript:;>
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 <javascript:;>.
For more options, visit https://groups.google.com/groups/opt_out.

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(., '^[0-9]{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: 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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

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

numbers-test.xls (56 KB)

··· -- 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(., '^[0-9]{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(., '^[0-9]{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: 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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

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, ゴー・ニコライ wrote:

You are looking for "regular expressions" as constraint. The following
only accepts 6 numeric digits:

regex(., '^[0-9]{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: 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/groups/opt_out.

--
--
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/groups/opt_out.

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(., '^[0-9]{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 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(., '^[0-9]{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: 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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

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 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(., '^[0-9]{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(., '^[0-9]{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: 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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

Ok so i made some progress using the following as constraint but still not
there:
regex(., '^[0-9.,-]{6}$')

If is specify type as text and the above constraint it works but i need to
then manually switch from alpha to numeric keyboard on the device, if a
specify appearance as numbers then i am only presented with option to enter
numbers and cannot use any Tehran characters as they are grayed out and
also cannot switch to aplha.

··· On Fri, Mar 22, 2013 at 4:43 PM, Yaw Anokwa 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(., '^[0-9]{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: 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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

--

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/groups/opt_out.

Let me just add a comment. If there's just six digits, do away with "-"

Anyway, with a hyphen your constraint will be:

^[\d]{3}[\d]{3}$

Nik

··· On Saturday, March 23, 2013, Bashir Jahed wrote:

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(., '^[0-9]{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(., '^[0-9]{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:

It's because you have characters that are not available in the numeric
keypad. Your option is to leave those out, or don't apply a "numbers"
appearance to your string.

··· On Monday, March 25, 2013, Bashir Jahed wrote:

Ok so i made some progress using the following as constraint but still not
there:
regex(., '^[0-9.,-]{6}$')

If is specify type as text and the above constraint it works but i need to
then manually switch from alpha to numeric keyboard on the device, if a
specify appearance as numbers then i am only presented with option to enter
numbers and cannot use any Tehran characters as they are grayed out and
also cannot switch to aplha.

On Fri, Mar 22, 2013 at 4:43 PM, Yaw Anokwa <yanokwa@nafundi.com<javascript:_e({}, 'cvml', '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(., '^[0-9]{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: 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/groups/opt_out.

--

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/groups/opt_out.

--

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

--

Post: opendatakit@googlegroups.com <javascript:_e({}, 'cvml',
'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@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 <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>.
For more options, visit https://groups.google.com/groups/opt_out.

Doing some looking into the implementation of regular expressions. will
feed back on results.

Bash

··· On Sat, Mar 23, 2013 at 3:28 AM, ゴー・ニコライ wrote:

Let me just add a comment. If there's just six digits, do away with "-"

Anyway, with a hyphen your constraint will be:

^[\d]{3}[\d]{3}$

Nik

On Saturday, March 23, 2013, Bashir Jahed wrote:

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(., '^[0-9]{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(., '^[0-9]{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


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/groups/opt_out.

Ok im stuck

Need another constraint but not sure how to express it, i need to limit the
type of characters to a-z, 0-9 and the following characters:

··· - . , ;

;
()

how do i specify specific chars in a constraint. Also is there any specific
reference for valid options, not familiar with regex at all.

Bash

On Sat, Mar 23, 2013 at 3:28 AM, ゴー・ニコライ nikolai.go@gmail.com wrote:

Let me just add a comment. If there's just six digits, do away with "-"

Anyway, with a hyphen your constraint will be:

^[\d]{3}[\d]{3}$

Nik

On Saturday, March 23, 2013, Bashir Jahed wrote:

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(., '^[0-9]{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(., '^[0-9]{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


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/groups/opt_out.