Select to view content in your preferred language

Survey123 - Location capture when editing

1387
4
Jump to solution
01-17-2024 11:02 AM
Hope_M
by
New Contributor

I know a location is captured on Survey123 when the survey is first opened, but I want to know whether that location changes if the survey is either edited out of the inbox or sent, edited and resent.

For example, if I arrive at a location, collect/open a survey, fill it out, save it to my inbox, drive to another location, reopen and edit the saved survey, and send it at the new location, would the location associated with the survey response be the first or second location? If I were to send the survey at the first location, drive over to the second location, then edit and resend the survey, would the location be captured any differently than the first scenario?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
abureaux
MVP Frequent Contributor

A geopoint with no other parameters set will collect a location and then that location will not change unless the user manually forces the update (either by clearing the geopoint and then recapturing, or by manually moving the point on the geopoint's map). For your purposes, don't use the position keyword.

EDIT: @IsmaelChivite I didn't know about this keyword, and will be using in a survey! Thank you.

View solution in original post

4 Replies
IsmaelChivite
Esri Notable Contributor

Hi! Have a look at the attached XLSForm. Note that the form is meant to be used with the Inbox enabled:

  • Import the XLSForm into Survey123 Connect
  • Enable the Inbox
  • Go back to the Form preview and Publish
  • In the Mobile app:
    • Collect one point and submit
    • Move a few hundred feet away from the original location
    • Go into the Inbox and open the form your submitted to change it
    • Note how the form will automatically tell you the distance between the original point you collected and your current location

The key here is the use of the position keyword in the default column of the geopoint question. When the position keyword is used, Survey123 recalculates the geopoint location, even if the record comes from the Inbox.  I like to use position this way when I want to know the exact location from which a field user is resinspecting an asset.

Also note that I am setting the esriFieldType XLSForm column to null for the second geopoint because in ArcGIS, it is not possible to have a single table with more than one geometry field. 

Hope_M
by
New Contributor

Thanks. So would the geopoint location remain the same if the position keyword is not used? I would like the location associated with each survey completed to be the location of the survey when it was first opened, and for the location not to change if it is edited in any way.

Also, right now I do not think there is not a geopoint question, but the location captured by Survey123 is used to display on a map the location where the survey was collected.

0 Kudos
abureaux
MVP Frequent Contributor

A geopoint with no other parameters set will collect a location and then that location will not change unless the user manually forces the update (either by clearing the geopoint and then recapturing, or by manually moving the point on the geopoint's map). For your purposes, don't use the position keyword.

EDIT: @IsmaelChivite I didn't know about this keyword, and will be using in a survey! Thank you.

IsmaelChivite
Esri Notable Contributor

Agreed with @abureaux  After reading the original question a second time, I realize I misinterpreted @Hope_M 's question.  Glad that @abureaux  found the position discussion useful but as Alexander indicates, the correct answer to the question is: 

A geopoint with no other parameters set will collect a location and then that location will not change unless the user manually forces the update (either by clearing the geopoint and then recapturing, or by manually moving the point on the geopoint's map).

0 Kudos