Setting the value to the latter two elements would require using the
"Default Value" field, rather than the "Default Data Value" field. I'm very
surprised to hear that setting the Default Data Value to 2010-01-01 is not
working, can you submit a bug from that form in CommCareHQ so we can take a
look?
As a workaround, you can try using "Default Value" and one of the latter
two expressions to see if that works.
-Clayton
···
On Tue, Dec 29, 2015 at 6:08 AM, Simon Berry wrote:
In form builder I'm attempting to set a default date value of 1-Jan-2010
for a date field.
I've tried the following in the 'Default Data Value' field:
2010-01-01 does not give an error when building the form but
doesn't work. I'm presented with today's date as the value to edit and not
2010-01-01
Thanks. I have submitted a report from CommCareHQ as you suggest.
Regards
Simon
29/12/15
···
On 29 December 2015 at 16:09, Clayton Sims wrote:
Simon,
Setting the value to the latter two elements would require using the
"Default Value" field, rather than the "Default Data Value" field. I'm very
surprised to hear that setting the Default Data Value to 2010-01-01 is not
working, can you submit a bug from that form in CommCareHQ so we can take a
look?
As a workaround, you can try using "Default Value" and one of the latter
two expressions to see if that works.
Hi, @Simon_Berry, I faced the same situation and found a way to add a value by defaut in date data type, and the solution was to add single quotes '' date format yy-mm-dd.