Some of date fields are not completed when we collect data for the first time. When we open to update collected data from inbox, date fields which have not been completed appare with 01.01.1970 . This creates inconvenience and time consuming to select correct time.
So, how to prevent auto population of empty date fields with value 01.01.1970 in #Survey123?
Sorry for the delay in reply. Just to understand your workflow, are you trying to edit surveys from the Inbox from an existing feature service, and were the existing surveys (features) created in Survey123 previously, or did they already exist in the feature service? Do you only see this behavior when editing existing surveys, versus collecting new surveys to the same feature service?
Would you mind sharing your xls form to take a closer look?
I am having the same issue as Igor. To answer your questions:
This problem occurs when I attempt to edit an existing feature from the Survey123 Inbox. When the feature/survey is intially captured, there is no issues with date fields. The problem occurs when there is an attempt to edit an existing survey.
I will send the xls form to you.
Just an update to let you know the issue with submitting empty (null) date fields via editing a survey with the Inbox has been resolved and a fix will be available in the next release of Survey123, version 2.4.
As indicated above, this issue was resolved with 2.4. I did a brief test and am seeing that a date submitted as empty is loading as empty from the inbox. Does the date field in the database allow for null values?
Thank you for the reply. The date field is set to allow for null values.
I've tested this more and it appears to be isolated to my field team as I cannot recreate this issue. We both have the same device, an iPad Mini 4, but theirs is about a year and a half newer than mine. When I submit records, the date field stays null, but all the records they submit get populated with 1/1/1970 date.
As a next step, I'll ask them to update their version of the Survey123 app just in case something is off there.