Copy the Sent Data Survey123

173
3
03-26-2020 10:34 AM
Highlighted
by
Occasional Contributor

I have a date field in my survey that I would like to keep hidden.  I am using a calculation on the field now().  However if a user does a "copy the sent data to a new survey" the date and time does not update to what is the current time should be.  It keeps the date of the survey being copied.  Is there a way to turn OFF copy the sent data while still allowing the surveys to be saved to the device? Sometimes the user needs to edit an already sent survey so that function is critical to keep.  OR is there a way for the date field to update when a "copy the sent survey" is created?

Tags (2)
Reply
0 Kudos
3 Replies
Highlighted
Esri Esteemed Contributor

HI Eric,

When a survey with existing data (such as the Inbox or copied from the Sent folder) is opened, the values are compared to the calculations - if they differ, the value in the form is retained (this usually indicates a user change of value).  

For your situation, it sounds like you want to record the time a survey starts.  It would be more appropriate to use a question of type start rather than a calculate/hidden with now().  Refer to the 'Metadata' section of XLSForm essentials—Survey123 for ArcGIS | Documentation  

Reply
0 Kudos
Highlighted
by
Occasional Contributor

HI James

The problem that I am having is that when a user selects Copy the sent data

to new survey the date and time does not update to the right time. It just

copies what was on the prior survey. Is there a way to fix this? Nothing I

tried seemed to fix it

Thanks for the help

Reply
0 Kudos
Highlighted
Esri Esteemed Contributor

Hi Eric,

As I mentioned above, that is the intended behavior of the field app - the existing date time value is preserved as it differs from what the calculation 'now()' would be.  I would suggest changing it to a 'start' question.

Reply
0 Kudos