Hi all,
I have a rather complex issue I'm struggling with. I have a request to build an offline FieldMaps solution to collect culvert line features. These culverts will also have a related table for condition assessments. Due to how the requestor wants their assessment form to look like (one 'select all that apply' type question and several numbers stored as text in likert style) I need to use Survey123 as well. I've attached these apps together via a URL before with success for other projects, but this time it's not working. Ideally, FieldMaps would have support for multiple choice fields and more customization for the look of form itself, but we're not there yet.
I have three requirements for this request that limit my options for the solution overall.
- The requirement to be able to work completely offline. This removes the option for utilizing Pulldata functions.
- The requirement to have some of the culvert field values within the survey123 form for relevant calculations. For example, if the culvert material is concrete (a parent layer attribute), the assessment questions for plastic culverts need to be hidden. So, I'd need to reference both the culverts and their related assessment table within the same Survey123 form.
- The requirement to be using a sub-meter GPS device paired to FieldMaps for greater accuracy with digitizing line features, as well as using Arcade to perform spatial calculations in the FieldMaps smart form to pull in attributes from nearby road and stream features.
I’ve attached the XLS form I’ve been trying to use and the URL parameters I’m using to pull values from FieldMaps to Survey123 is below.
arcgis-survey123://?itemID=<itemID>&field:GlobalID={GlobalID}&field:Culvert_GUID={GlobalID}&field:ConduitID={Conduit_ID}&field:Material_={Material}&field:Material_Other_={Material_Other}&field:Culvert_Shape_={Culvert_Shape}&field:Culvert_Function_={Culvert_Function}&field:Culvert_Shape_Other_={Culvert_Shape_Other}&callback=https%3A%2F%2Ffieldmaps.arcgis.app%2F%3FitemID%3D4b175a38b5344dd2bf8fa36bef5022bb%26referenceContext%3Dopen
So far I’ve tried:
- Recreating the survey, pointing it to my existing feature service, and publishing the survey directly. No modifications to the form at all. This works, I can create a simple line feature in Survey123 and fill out the assessment form and it creates everything perfectly. Just doesn’t have the spatial accuracy, digitizing tools, or Arcade spatial calculations that I need.
- Next, I tried taking out all the culvert fields from the Survey123 form. This also works as expected but due to the requirement #2 that says culvert fields are needed for relevant calculations, I need the culvert field values to be in the form.
When I try to use this form as it is now, the culvert GlobalID isn’t being passed through to the assessment repeat neither are ‘some’ of the other culvert field values. Some of them do get passed through. But they’re all configured the same way in the form.
I’m using Survey123 Connect v. 3.19.114, FieldMaps v.24.0.1, and publishing from Pro v. 3.2.0
I guess at the heart of the matter is: Is it possible to reference an entire feature service, both the parent and child layers, within one Survey123 form? How to preserve both the Culvert GlobalID and pass it to the assessment within one form?
Many thanks to any and all advice,
Caitlin
Lane County GIS