I have a question asking the year the business started and able to set up year under appearance. The default year range being displayed spans from 2019-2030 (attached image), we rather wanted to make the default list of past year ranges like from 2010-2020 or 20 year list ranges from 2001-2020.
Welcome to the community, @mjemal! Maybe you could design your xlsform as outlined below, which should restrict users to select the date from within a specified range:
Hello,
I think the idea was to filter the date widget values BEFORE the data entry. This would be a great improvement for Enketo/Collect, not only for years. Appearance or parameters could be used for this enhancement.
Esp. if the number of valid years is low, a current workaround might be to use select_one MyYears as type. (But you loose the date feature and the value is stored as “year” instad of “yyyy-01-01”).
I think the constraint option of Kal_Lam together with a hint text (and enumerator training), is a good solution.
Kind regards
@Kal_Lam Thank you for your response on this. The suggested constraint evaluates the data entry values very well but doesn’t seem enforce to the display.
@wroos that is exactly what I’m looking for. If this is something easy to do- your further instruction how to handle within appearance/parameter would be much appreciated.