Community Health Toolkit

Displaying a default date on the calendar

I have a date field in my XLSForm and I would like to display a default value. I have tried to add the following under the defaults column but it does not display anything.

2020-10-15 
date('2020-10-15')
2 Likes

I don’t think we have this documented anywhere and https://xlsform.org/en/ doesn’t really seem to either.

However, I found the mention of using today() in the calculation field and tried your date('2020-10-15') in the calculation field. It seems to set that as the default date.

2 Likes