Hello,
I have been back and forth on this forum on how to input phone numbers
i have seen that i can mimic the keyboard to display numbers on string type
however my qtn still remains is there a way of limiting the maximum
numbers to be 10 digits and not 9 digits so as for enumerators to input
phone numbers
When using the string type with "numbers" appearance:
constraint="string-length(.)=10"
ยทยทยท
On Fri, Jun 19, 2015 at 5:57 AM, Ayoub Kakande wrote:
Hello,
I have been back and forth on this forum on how to input phone numbers
i have seen that i can mimic the keyboard to display numbers on string type
however my qtn still remains is there a way of limiting the maximum
numbers to be 10 digits and not 9 digits so as for enumerators to input
phone numbers
constraint="string-length(.)=10" ........ this didn't work for me
so I entered "string-length(.)=10"...... this didn't limit it too 10 but
gave me the option to enter 16 digits...
Using xlsx and using enketo to preview.
ยทยทยท
On Monday, June 29, 2015 at 2:39:54 PM UTC-5, Mitch Sundt wrote:
>
> When using the string type with "numbers" appearance:
>
> constraint="string-length(.)=10"
>
> https://opendatakit.org/help/form-design/binding/
>
>
> On Fri, Jun 19, 2015 at 5:57 AM, Ayoub Kakande <akak...@gmail.com > wrote:
>
>> Hello,
>> I have been back and forth on this forum on how to input phone numbers
>> i have seen that i can mimic the keyboard to display numbers on string
>> type
>> 1) however my qtn still remains is there a way of limiting the maximum
>> numbers to be 10 digits and not 9 digits so as for enumerators to input
>> phone numbers
>> 2) How do i limit string length so 11 characters
>>
>> --
>> --
>> Post: opend...@googlegroups.com
>> Unsubscribe: opendatakit...@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...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Mitch Sundt
> Software Engineer
> University of Washington
> mitche...@gmail.com
>
constraint="string-length(.)=10" ........ this didn't work for me
so I entered "string-length(.)=10"...... this didn't limit it too 10 but
gave me the option to enter 16 digits...
Using xlsx and using enketo to preview.
On Monday, June 29, 2015 at 2:39:54 PM UTC-5, Mitch Sundt wrote:
When using the string type with "numbers" appearance:
On Fri, Jun 19, 2015 at 5:57 AM, Ayoub Kakande akak...@gmail.com wrote:
Hello,
I have been back and forth on this forum on how to input phone numbers
i have seen that i can mimic the keyboard to display numbers on string
type
however my qtn still remains is there a way of limiting the maximum
numbers to be 10 digits and not 9 digits so as for enumerators to input
phone numbers
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Mitch Sundt
Software Engineer
University of Washington mitche...@gmail.com
I can enter up to 16 numbers on enketo but on my samsung s5, I can only
enter 9 digits.
ยทยทยท
On Friday, July 31, 2015 at 10:55:02 AM UTC-5, Yaw Anokwa wrote:
>
> Hi Samantha,
>
> This might be a limitation of Enketo. Have you tried it in ODK Collect?
>
> Yaw
> --
> Need ODK services? http://nafundi.com provides form design, server
> setup, professional support, and software development for ODK.
>
> On Fri, Jul 31, 2015 at 9:15 AM, <samantha....@rst-nsn.gov > wrote:
> > constraint="string-length(.)=10" ........ this didn't work for me
> > so I entered "string-length(.)=10"...... this didn't limit it too 10 but
> > gave me the option to enter 16 digits...
> >
> > Using xlsx and using enketo to preview.
> >
> >
> >
> > On Monday, June 29, 2015 at 2:39:54 PM UTC-5, Mitch Sundt wrote:
> >>
> >> When using the string type with "numbers" appearance:
> >>
> >> constraint="string-length(.)=10"
> >>
> >> https://opendatakit.org/help/form-design/binding/
> >>
> >>
> >> On Fri, Jun 19, 2015 at 5:57 AM, Ayoub Kakande wrote:
> >>>
> >>> Hello,
> >>> I have been back and forth on this forum on how to input phone numbers
> >>> i have seen that i can mimic the keyboard to display numbers on string
> >>> type
> >>> 1) however my qtn still remains is there a way of limiting the maximum
> >>> numbers to be 10 digits and not 9 digits so as for enumerators to
> input
> >>> phone numbers
> >>> 2) How do i limit string length so 11 characters
> >>>
> >>> --
> >>> --
> >>> Post: opend...@googlegroups.com
> >>> Unsubscribe: opendatakit...@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...@googlegroups.com.
> >>> For more options, visit https://groups.google.com/d/optout.
> >>
> >>
> >>
> >>
> >> --
> >> Mitch Sundt
> >> Software Engineer
> >> University of Washington
> >> mitche...@gmail.com
> >
> > --
> > --
> > Post: opend...@googlegroups.com
> > Unsubscribe: opendatakit...@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...@googlegroups.com .
> > For more options, visit https://groups.google.com/d/optout.
>
constraint="string-length(.)=10" ........ this didn't work for me
so I entered "string-length(.)=10"...... this didn't limit it too 10 but
gave me the option to enter 16 digits...
Using xlsx and using enketo to preview.
On Monday, June 29, 2015 at 2:39:54 PM UTC-5, Mitch Sundt wrote:
When using the string type with "numbers" appearance:
On Fri, Jun 19, 2015 at 5:57 AM, Ayoub Kakande akak...@gmail.com wrote:
Hello,
I have been back and forth on this forum on how to input phone numbers
i have seen that i can mimic the keyboard to display numbers on string
type
however my qtn still remains is there a way of limiting the maximum
numbers to be 10 digits and not 9 digits so as for enumerators to
input
phone numbers
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Mitch Sundt
Software Engineer
University of Washington mitche...@gmail.com
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ยทยทยท
On Friday, July 31, 2015 at 4:22:53 PM UTC-5, Yaw Anokwa wrote:
>
> Make sure you are using the text data type with appearance of numbers.
>
> Yaw
> --
> Need ODK services? http://nafundi.com provides form design, server
> setup, professional support, and software development for ODK.
>
> On Fri, Jul 31, 2015 at 4:20 PM, <samantha....@rst-nsn.gov > wrote:
> > Hello Yaw,
> >
> > I can enter up to 16 numbers on enketo but on my samsung s5, I can only
> > enter 9 digits.
> >
> > On Friday, July 31, 2015 at 10:55:02 AM UTC-5, Yaw Anokwa wrote:
> >>
> >> Hi Samantha,
> >>
> >> This might be a limitation of Enketo. Have you tried it in ODK Collect?
> >>
> >> Yaw
> >> --
> >> Need ODK services? http://nafundi.com provides form design, server
> >> setup, professional support, and software development for ODK.
> >>
> >> On Fri, Jul 31, 2015 at 9:15 AM, wrote:
> >> > constraint="string-length(.)=10" ........ this didn't work for me
> >> > so I entered "string-length(.)=10"...... this didn't limit it too 10
> but
> >> > gave me the option to enter 16 digits...
> >> >
> >> > Using xlsx and using enketo to preview.
> >> >
> >> >
> >> >
> >> > On Monday, June 29, 2015 at 2:39:54 PM UTC-5, Mitch Sundt wrote:
> >> >>
> >> >> When using the string type with "numbers" appearance:
> >> >>
> >> >> constraint="string-length(.)=10"
> >> >>
> >> >> https://opendatakit.org/help/form-design/binding/
> >> >>
> >> >>
> >> >> On Fri, Jun 19, 2015 at 5:57 AM, Ayoub Kakande wrote:
> >> >>>
> >> >>> Hello,
> >> >>> I have been back and forth on this forum on how to input phone
> numbers
> >> >>> i have seen that i can mimic the keyboard to display numbers on
> string
> >> >>> type
> >> >>> 1) however my qtn still remains is there a way of limiting the
> maximum
> >> >>> numbers to be 10 digits and not 9 digits so as for enumerators to
> >> >>> input
> >> >>> phone numbers
> >> >>> 2) How do i limit string length so 11 characters
> >> >>>
> >> >>> --
> >> >>> --
> >> >>> Post: opend...@googlegroups.com
> >> >>> Unsubscribe: opendatakit...@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...@googlegroups.com.
> >> >>> For more options, visit https://groups.google.com/d/optout.
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Mitch Sundt
> >> >> Software Engineer
> >> >> University of Washington
> >> >> mitche...@gmail.com
> >> >
> >> > --
> >> > --
> >> > Post: opend...@googlegroups.com
> >> > Unsubscribe: opendatakit...@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...@googlegroups.com.
> >> > For more options, visit https://groups.google.com/d/optout.
>
Thanks for your input. I have tried to use your code and also including ^ and $ on both ends. None of them work, still XLSForm Online do not convert the excel file to XForms files.
I am starting to think it is a problem of the conversor than the form itself. (EDIT: I also used the ODK XLSForm Offline app and the same error is issued)
Here is an extract from my form. I must put in 10 digits, or 13 digits for a personโs identity number. An error message displays if exactly 10 or 13 digits, respectively, are not captured.
The first and last row are personal identity numbers, not phone numbers but same principle. My device is a Samsung Galaxy Pro tablet.
type
name
label
hint
required
relevant
constraint
constraint_message
appearance
text
Cellnumber
Q11 Cell phone number?
Only if YES selected for previous question
${Purpose} = 'Business_premises'
regex(.,'[0-9]{10}')
Must be 10 digits
numbers
text
IdentityNo
Q39 What is the ID number of the household head?
regex(.,'[0-9]{13}')
numbers
text
ContactNoHH
Q45 What is the household heads contact number?
Only numbers and no spaces
regex(.,'[0-9]{10}')
Must be 10 digits
numbers
text
contactNoOther
Q46 What is the contact number of another household member (i. e. spouse)?
Thanks for the example and efforts. I do not think my constraint field is wrong. Unless it does not allow three different constraints on the same field or some of them are mutually exclusive.
My best guess is that it is a problem of the convertion to XLSForm. I hope someone else can shed more light on the issue.
I am using appearance="number" and constraint="(regex(.,'[0-9]{11}'))" but alphanumeric
keyboard appears rather than the numeric one.
Attached is screenshot of code.