ODK date field not accepting Jan 1961

Hi Community,

Anyone experienced this?

If you I set my date input appearance='month-year' in the XML then in ODK
collect it'll crash when I put 'Jan 1961'

likewise

appearance='year' will not accept '1961', ODK crashes

If I remove the appearance attribute the form works normally but I do not
wish to let the user input anything other than just a year.

Any help to what might be causing this, any help in solving it please?

Fascinating.

If you change the Locale of your device (e.g., to US English) does it work?
(and if it does, what language did it fail in)

If it is not a locale issue, then it is likely an issue specific with your
Android device, or perhaps your Android OS revision.

It works fine on my Android 4.4.4 tablet.

··· On Sat, Jan 23, 2016 at 11:50 PM, Sam Shaba wrote:

Hi Community,

Anyone experienced this?

If you I set my date input appearance='month-year' in the XML then in
ODK collect it'll crash when I put 'Jan 1961'

likewise

appearance='year' will not accept '1961', ODK crashes

If I remove the appearance attribute the form works normally but I do not
wish to let the user input anything other than just a year.

Any help to what might be causing this, any help in solving it please?

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Hi Mitch,

Thanks for a suggestion, I tried locale in my Samsung phone, 4.4.4 didn't
work, I also tried my Tab which is Acer A1 Android 4.4.2, still failed.

I tried switching between languages inside ODK Collect (It had both Swahili
and English), still failed.

I am left with no solution still.

I replicated the problem in a simple ODK XML, please anyone try it and tell
me if it works in yours or help me debug anything I did wrong.

<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h=
"http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr=
"http://openrosa.org/javarosa">
<h:head>
<h:title>Example_ODK crash at Jan 1961</h:title>






<date_field/>





Date example


Try Jan 1961???






</h:head>
<h:body>




</h:body>
</h:html>

Example_ODK crash at Jan 1961.xml (1.17 KB)

··· On Tuesday, January 26, 2016 at 9:44:23 PM UTC+3, Mitch wrote: > > Fascinating. > > If you change the Locale of your device (e.g., to US English) does it > work? (and if it does, what language did it fail in) > > If it is not a locale issue, then it is likely an issue specific with your > Android device, or perhaps your Android OS revision. > > It works fine on my Android 4.4.4 tablet. > > > > > > On Sat, Jan 23, 2016 at 11:50 PM, Sam Shaba <s4m...@gmail.com > wrote: > >> Hi Community, >> >> Anyone experienced this? >> >> If you I set my date input *appearance='month-year' in the XML* then in >> ODK collect it'll crash when I put '*Jan 1961*' >> >> likewise >> >> *appearance='year' will not accept '1961', ODK crashes* >> >> If I remove the appearance attribute the form works normally but I do not >> wish to let the user input anything other than just a year. >> >> Any help to what might be causing this, any help in solving it please? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >