I am really new to ArcGIS Online and the first steps in coding.
I created a webmapp app: users can create clinics (as points) and each time they create a new point they have to choose in a list the region, the province, and the district (attributes editing in a pop up) I added to the webmap a district layer (as polygons) with 3 fields (region name, province name, and district name)
I would like each time they create/edit a new clinic, the mentioned fields to be automatically populated with the values of the district the clinic is within. I searched quite a lot, and I don't really know how to calculate a field on the fly or what would be the expression and the language for it. I think it should be on the pop config with SQL but I really don't know where to start.
Do I do that in the webmap, with another tool in ArcGIS Pro, or using ArcPy?