Restricting selection of Sunday from Calendar

Hi @Kal_Lam

Is there any option that we can restrict the selection of Sunday from calender

As we are facing problem , while scheduling enumerator are selecting Sunday as scheduled visit day but the same is the holiday so planning goes waste.

How we can avoid this situation , enumerator should only be able to select weekdays

Cheers!

Neeraj

1 Like

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

In the survey tab of your xlsform:

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

Data entry screen as seen in Enketo: when the date is entered on other days

Reference xlsform:

Date.xlsx (16.6 KB)

1 Like

To add: The solution would need small adaption for multiple language forms. The comparison week day could be defined with a fixed format-date(…) function, instead of a static string like ‘Sun’. See %a explanation* here ODK XForms Specification.

2 Likes