···
On Sunday, January 24, 2016 at 10:48:40 AM UTC+3, 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?
>
> Kindly,
>
> Sam
>
>
>
This works fine on my device (Genymotion, Nexus 4 running 4.4.4). If I
remember correctly, the date widgets have device specific (and
somewhat buggy) reflection code. That plus date code is hard to get
correct. Try dates before and after Jan 1, 1970 and see if that
changes the behavior. Then try dates before and after Jan 1, 1961.
As far as workarounds, you can use two questions. One is a month
(select one with all 12 months) and a year (integer widget that allows
whatever 4 digit range).
Yaw
···
--
Need ODK consultants? Nafundi provides form design, server setup,
in-field training, and software development for ODK. Go to
https://nafundi.com to get started.
On Sat, Jan 30, 2016 at 5:39 PM, Sam Shaba s4mw3l@gmail.com wrote:
[edit] 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.