Select to view content in your preferred language

Pull data for dates not working in browser but works in Connect and mobile app

3319
11
Jump to solution
05-18-2021 08:27 AM
MatthewBradbury
New Contributor III

When pulling data using the pulldata() function for date or dateTime types from a csv in the media file, the value is not pulled while using the survey in a browser; I tried the latest desktop versions of Chrome, Firefox, and Edge, and none of them worked. The date value does pull inside of Survey123 Connect as well as the Survey123 app, and it is converted to the correct format (ex: 5/18/2021 in csv file comes in as 1262332800000). I know the pull data function in a browser is working as I can pull the date in the csv as a string type and view it inside of the survey without any issues.

11 Replies
Ramon_de_Leon
Occasional Contributor

@MatthewBradbury just like you I do not know how I resolved it.... I just republished my survey a few times then it worked.... some thing you just can't explain 🙂

0 Kudos
JasonJordan00
Occasional Contributor

I've been fighting with this problem as well and after a lot of trial and error I've found pulldata only works in a web form if dates are formatted YYYY-MM-DD in the CSV.

0 Kudos