hello Survey123 people.
I created a survey using Survey 123 Connect 3.12.232 to track Volunteer registration. I have a few fields for Check In and Check Out. When the Volunteer first register those 2 fields are blank (NULL) and later on they can comeback and check in or out. I added a basic JavaScript function (see below) to assign the "status' of the volunteer (Register, Checked In, Checked Out). As you can see on my images, everything seems to be working fine in design mode and mobile (IOS using Arcgis Survey 123) BUT when using the same survey online, the status value is always "Checked Out". Is there a different way to handle DATE field ?
Any help would be much appreciated
Thanks!
Dominic
***************************************************************
function drStatus(datein, dateout) {
if (datein === null && dateout === null)
return 'Register';
else if (datein !== null && dateout === null)
return 'Checked In';
else if (datein !== null && dateout !== null)
return 'Checked Out';
}