Question type: Time

Dear Team,
Off recently, when I use time question type, the time at times doesn’t show up sometimes in enketo web form. it just give --:–. Is there any issues in this question type.

time issues .xlsx (9.3 KB)

Thank you

Hi @dawazangpo and welcome back to the community!

It works on my side as intended. Can you share a screenshot of the problem?

1 Like


it shows sometimes while at times it doesn’t. It don’t show constantly, I try to use trigger too but the result is same.

if it works fine in same browser - kindly use incognito of chrome and it doesn’t at times.

That’s interesting behaviour, I wonder if it is somehow related with the incognito status of the browser so it doesn’t trigger properly. I believe someone from community could answer this.

1 Like

Not oly cognito but when new browser use that form, it doesn’t work

@dawazangpo, try using the now() function with the dateTime question type and it should work.

In the survey tab of your XLSForm:

image

Data entry screen as seen in Enketo:

image

Reference XLSForm:

time issues .xlsx (9.0 KB)

Dear @Kal_Lam ,

Thank you for your prompt response. However, I’d like to clarify that I prefer not to include the date for this particular variable. Adding the date increases the complexity of extracting only the time during data analysis. Additionally, I’ve set this field as mandatory and read-only to prevent enumerators from editing the time.

Unfortunately, I’ve encountered issues with the system’s time synchronization or accurate capture when using the time question type. Despite trying various approaches, such as using the now() function in both the calculate and default columns, and testing the Enketo web form on different laptops, the results have been inconsistent. Sometimes the time is displayed correctly, while at other times the time doesn’t even shows up like in the above screenshot.

I appreciate any further assistance or insights you can provide on resolving this issue.

Thank you