Select to view content in your preferred language

How to prevent Survey123 form from creating a spatial point when the geopoint question is not relevant

114
1
a week ago
BradleyNissen1
Occasional Contributor

I have designed a survey with a geopoint question within a repeat. I would like my survey data to only generate a spatial data point when that repeat is relevant. For more context, the survey is being used to survey birds, and the repeat is used to collect data on nests, in case one is found during the survey. I want the data to include a spatial point for each nest found in a survey, but if no nests are found - I don't want there to be any spatial points in the survey results. 

Right now, the survey started generating a 0 Lat, 0 Long point even when the nest repeat is not relevant . I have that repeat set to appear only if the answer to the question "Did you find a new nest?" is yes. Yet even when users are answering no, the spatial point from within the repeat is being defaulted to 0 lat, 0 long. 

I have the survey set up to create a null geopoint earlier in the survey, because I understand this is a requirement of Survey123. Is there a new way around this? That used to work and now it isn't working anymore. Thanks! 

0 Kudos
1 Reply
LaurenceTait
Frequent Contributor

Survey123 requires a geopoint. If you don't include one, it will make one for you anyway.

I'm not sure what you mean by a null geopoint. If you set the bind to null, the geopoint won't be created, and Survey123 will create another one for you. It's been that way for at least 5 years.

What is the problem with having an empty geopoint field in your database?

It's unusual not to want to store locations for 'failed' searches. Normally you would want to be able to see where you searched and found nothing, particularly when can be done at zero effort.

 

0 Kudos