Select to view content in your preferred language

Preloading secondary geometry in Survey123 Advanced forms

290
1
04-04-2025 03:03 AM
BekirKoncak
New Contributor

Hi all,

At my client we maintain a survey in Survey123 to gather all kinds of rail related issues. In some cases we need a secondary geometry for a begin point and an end point. Therefore we use the option to fill in a first geometry and a secondary geometry (bind::esri:fieldType=null). We extract the secondary point geometry into a text field with a calculation :

pulldata('@geopoint',${pointgeomEnd}, 'DD')

 

The secondary geometry is mandatory. However we allow the users to edit the feature by linking back to the map with this code for the popUp:

<p>
    <a target="_blank" rel="noopener noreferrer" href="https://survey123.arcgis.app?itemID={survey_item_id}&amp;update=true&amp;download=true&amp;action=edit&amp;q:globalId={globalid}&amp;field:aangemaaktOp=">Gebrek bewerken</a>
</p>

 

The first geometry is preloaded, but the secondary geometry stays null. I understand why, but how can I get this preloaded? Is there another field/calculation that I can add?

To illustrate I have added the example excel in the attachments.

Hope someone has encountered this before.

 

0 Kudos
1 Reply
ChristopherCounsell
MVP Frequent Contributor

I'm not quite sure of the workflow but it sounds like:

  • You use a null geometry field 
  • You calculate a text field from the null geometry 
  • You use the inbox to edit the same feature and are having issues as the null geometry isn't visible 

Null values don't get submitted and won't get stored.

The inbox url doesn't support field parameters. field:aangemaaktOp= won't do anything.

I think it's best not to rely on null fields or field parameters with the inbox. Gets messy. Better to leverage related tables somehow.

You could consider using using the pulldata property function to detect if the inbox is in use:

https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepopulateanswers.htm#ESRI_SECTION1_FC29...

You could display the location again but I think any scenario where you want to allow the second geometry to be edited (and thereby calculated) would cause a loop.

0 Kudos