Hi @msupriya,
As outlined by @wroos you could also do it as shown in the image below using today()
under the calculation
and keeping the read_only
as TRUE
with the date
question type:
Or, using now()
under the calculation
and keeping the read_only
as TRUE
with the date
question type as shown in the image below:
Both the approaches will give you the same result as shown in the image below:
Data entry screen as seen in Enketo:
Reference xlsform: Using today()
Default Today’s Date.xlsx (9.5 KB)
Reference xlsform: Using now()
Default Today’s Date.xlsx (9.5 KB)
An alternative way is using the using the same calculation in a constraint. For this, please have a look at the workaround discussed previously:
Have a great day!