Select to view content in your preferred language

Form Report: Display photo location instead if there is no feature layer

659
4
10-12-2022 05:57 PM
CatherineHall678
Occasional Contributor

Hello....

I built an inspection form in Survey 123 using a feature service as my template. The process starts with the inspector (while on the job site) use Field Maps, (1) clicks a pipe asset (2) selects an option to inspect that asset (3) Open Survey 123 form & answers question to include taking up to 3 photos (4) submits the form and it automatically returns the inspector back to field maps. With that said, the answers submit back to a table--- so when I create a report in survey 123, it does not add or allow me to add a map location ${location}...is there a way to use the photo location instead? I tried adding the geopoint but it needed a feature layer...help?

 

0 Kudos
4 Replies
Richard_Purkis
Esri Contributor

Hi @CatherineHall678 Even without a geopoint question you can still return the location of the feature class if submitting to a related table. This can be done using  ${$shape}. From documentation:

If your survey doesn't contain a map question or you're creating reports for feature layers without an associated survey, the geometry of a record can still be returned using the ${$shape} placeholder.

Let me know if this helps

0 Kudos
CatherineHall678
Occasional Contributor

Hi Richard, First, thank you...I just tried the ${$shape} and gave me a failed to parse ...undefined error. Should I use the ItemID for the map used and how do I specify which feature? the table uses global ID/GUID as well...

0 Kudos
Richard_Purkis
Esri Contributor

@CatherineHall678 May you confirm it works if you just put ${$shape}. This will hopefully isolate the error to the subsequent expression.

Thanks 

0 Kudos
CatherineHall678
Occasional Contributor

Yes, it does work if I just put ${$shape} - no error but no "map" on the report...

2022-10-13_10-37-05.png

0 Kudos