I have uploaded a shape file to AGOL as a hosted feature layer and I have created a form in Field Maps to capture data in the field. The feature layer has an address field and I was wondering if it's possible for the address to auto populate in this field when field users capture collection points?
Thank you
Yes, that is possible by using Arcade and a Calculated Expression for the address field.
Can you please elaborate @ArmstKP . I understand we can use arcade expressions to pull from other data layers within map but still do see how to auto populate attributes directly from "dropped pin"/"collect here" screen.
@SPGilbert I guess I don't understand. You can create a calculated expression, that goes out and finds the address number that intersects with the dropped pin/point and it populates that value in this field in Field Maps designer...
@ArmstKP, I believe I'm the one that doesn't understand. Can you give me an example expression that performs this?
@SPGilbert If you have your address layer in AGOL, use the below:
var features = Intersects(FeatureSetByPortalItem(Portal('https://www.arcgis.com'),"Your AGOL Item Number for Your Address Layer Goes Here", 0), $feature);
if (Count(features) > 0) {return First(features)['Your Address Number Field Name Goes Here']}
I, too would like to see this feature
You can vote for the idea here: Auto populate address - Esri Community
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.