I have a field map with layer 1 and layer 2, when you tap on a feature for layer 1, there's a popup which has a custom URL that adds a feature for layer 2. I am trying to put instructions in the custom URL where it uses the values of specific fields from layer 1 to populate in the new feature.
Now, deploy your map has great instructions on how to prepopulate attributes with hard coded values, however, is there a way to use field names in the key value pairs...?
This is not working:
https://fieldmaps.arcgis.app?referenceContext=addFeature&itemID=5b6d5758c0614120901506e2a1e39bbc&featureSourceURL=yadayada&featureAttribute= {"gravel_program_id":{WorkOrder}}
...And the encoded version:
https://fieldmaps.arcgis.app?referenceContext=addFeature&itemID=5b6d5758c0614120901506e2a1e39bbc&featureSourceURL=yadayada&featureAttribute=%7B%22gravel_program_id%22:%7BWorkOrder%7D%7D
Any help with this would be greatly appreciated.