Hello - I have created a field maps app based on a feature service that has several layers and related tables. One of the feature layers is called PlantedArea (polygon feature layer). In Field Maps, the users would create a polygon to delineate the area where marsh plantings were installed in an area. The feature layer has a PlantedAreaType subtype field where 1 = Low Marsh and 2 = High Marsh. I want to use a Survey123 form for users to fill out the information for the Planted Area polygon since I want to have the ability for the user to select multiple answers and other survey123 form options. I want to be able to use the Survey123 form to edit the existing feature layer. I created a URL in my field map feature layer popup for passing the values of fields in the field map feature layer to the survey123 app and the answers in the Survey123 app to populate the field maps feature layer. I added edit to the URL since I want to be able to edit the feature layer with the values inputted into the Survey123 App. I want the existing fields in the field maps feature layer to populate in the Survey123 form so that the user doesn't have to enter these values again and so that the survey123 form shows the correct questions based on the PlantingAreaType (Low Marsh or High Marsh) of the feature.
Currently, a user creates the polygon, selects which PlantedAreaType subtype (Low Marsh or High Marsh) and hits submit to create the polygon. Once the polygon is created, the Survey123 form pops up. However, the PlantedArea information of the current feature is not passed to the survey.
My URL: href="arcgis-survey123://?itemID=f6a81fd0394a428da2885143cf6c0016&field:GlobalID = {GlobalID}&field:PlantedArea_GUID={PlantedArea_GUID}&field:PlantingAreaType = {PlantingAreaType}&field:Shape__Area={Shape__Area}& field:Shape__Length={Shape__Length}& field:DatePlanted={DatePlanted}&field:PlantedPhase={PlantedPhase}&field:PlantingCoverage={PlantingCoverage}&callback=https%3A%2F%2Ffieldmaps.arcgis.app&mode=edit"
After creating a PlantingArea feature, a record is created with the fields entered in Field Maps App (PlantedAreaType, GlobalID, PlantedArea_GUID, Shape_Area, Length_Area) in the data table. After submittal, the Survey123 app pops up with no values passed. Any information filled in on the Survey123 form creates a new record in the data table with a new GlobalId (but the PlantedArea_GUID is filled in and the same) and no fields are filled whose values are on the feature layer. I want the survey to edit the existing feature layer, not create a new record.
What am I doing wrong?
Thank you!!
Solved! Go to Solution.
Hello - I wanted to thank you for taking the time to help. I ended up getting a ticket with ESRI and they solved the issue. This is the following URL that does the job: href="arcgis-survey123://?itemID=47a103b3abc04c05be8a1088b8a5a7f4&folder=inbox&update=true&action=edit&q:GlobalID={GlobalID}&field:PlantingAreaType={PlantingAreaType}&callback=https%3A%2F%2Ffieldmaps.arcgis.app"