I have a geopoint question in my survey, this morning it has stopped working and started placing new records in the centre of the world map even though I am entering my location as normal.
Can I get a solution on how to resolve this? Is it something to do with the field type etc in the csv?
Hi Matthew,
I think I need more information to be able to help troubleshoot. Are you saying that if you add a new point, your input is being ignored and the resulting point is added at 0,0 (Lat,Long)? Are you using a pulldata() function to calculate your geopoint location from a CSV file?
What Survey123 version, device and operating system version are you using? I'm assuming you're using the field app (as opposed to the Survey123 webapp) right? If possible, can you provide your xlsform for further investigation?
Thanks,
Brett
Hi Brett
Thanks for speedy reply.
Thank you!
Thanks for sharing your survey. It always helps figuring things out.
I added a point in your live survey in an attempt to reproduce the problem you are describing. I could not reproduce the problem. As shown in the screenshot below, the developer tools in the web browser indicate that the point geometry is sent correctly.
I believe the problem here is that users may not be providing a location when completing the form. You could make your geopoint question required to avoid this.
In a second test, I was able to send the form after answering 'Yes' to Are you happy for us to plot your garden on a public map to show wildlife gardens in Surrey?, while leaving the map question empty. In that case, you would expect the user to enter a location, but if the map question is left unanswered, the geopoint value will be null (as expected). Again, making the geopoint question required should avoid this situation.
The form looks REALLY nice and I like the way you used hidden questions for your calculations. Well done!
Thank you Ismael! So you think it is most likely a user error? I did replicate it myself after *definitely* placing a point but that was before I deleted and replaced the question.
If I make the geopoint question required, which sounds like a good solution, will that only be required if the relevance conditions are fulfilled? (e.g. they ticked yes, they would like to be shown on the map)