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}&update=true&download=true&action=edit&q:globalId={globalid}&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.
I'm not quite sure of the workflow but it sounds like:
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:
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.