Changing the date format to YYYY when the input date is wrong/incorrect

Hi dears,
H hope this message finds you well.
is there any way to make the data entry able to change on the selected date (in the date box)
like if he doesn’t have the full date so he can delete the MM/DD and keep only the YYYY.
thank you.

A workaround might be to fix a rule for the enumerators/users, like: If day unknown, enter 01 (or 15). If month unknown, enter June,

Update: Or you could use 3 separate integer filelds and calculate your date type variable. (Still you would need to decide how you replace missing parts. And you will need (complex) constraints to control against invalid date part, e.g. 31.02.)

1 Like

Welcome to the community, @aqutysh! Are you planning to collect your data through Collect android app or are your planning to use Enketo?

I am using Collect android app

I am using Collect android app

Thank you for your reply,
this will be the last choice.

@aqutysh, maybe you could do it as outlined in the image shared below:

In the survey tab of your xlsform:

In the choices tab of your xlsform:

Image 2

Data entry screen as seen in Enketo: when the entered date is correct

Data entry screen as seen in Enketo: when the entered date is wrong/incomplete

Reference xlsform:

Date.xlsx (18.9 KB)

1 Like

thank you for your reply and interest.
you are my hero.

1 Like