I'm working in AGOL WebMap drafting a URL Scheme that will populate a value in the DateCompleted question response of a survey.
I have successfully done this before calling up data that is in the layer the pop-up text box link is attached to.
I.E.
https://survey123.arcgis.app?itemID=aca3583455174aaab4434a98e5e89e45&field:SUID={SUID}&field:DateCom... ={DATE_COMPLETED}
The above returns the {DATE_COMPETED} field value for the specific given feature of the layer I put this link in via text pop-up box.
I'm now trying to have the call up return {DATE_COMPLETED} from a different layer AND for the feature that has the same {SUID} equal to the {SUID} value in the layer that the pop up link in attached to.
I.E. (not sure how to write this)
https://survey123.arcgis.app?itemID=aca3583455174aaab4434a98e5e89e45&field:SUID={SUID}&field:DateCom... =({DATE_COMPLETED} of feature {SUID}={SUID} from {itemID:0cf6839995f34aafb01a5459d7f6205d})
To say it differently, I'm trying to call up DATE_COMPLETED from the feature with in layer 0cf6839995f34aafb01a5459d7f6205d that has the same SUID as both the SUID in the feature which the pop-up text box link is attached, which will also in turn be the SUID used in the newly created survey.
After reading this three times I'm not sure even I understand what I'm asking.
You guys are always the greatest and I hope I'm not wasting your time. I just feel like I'm spinning my tires in the product resources pages
Seems like you could use the - pulldata("@layer", "getValueAt", "attributes.", "https://services.arcgis.com//arcgis/rest/services/", ${map_location}). This works with any hosted feature table or even CSV file.
Thanks...
I'll look into using pulldata.