Select to view content in your preferred language

Use Select by Location or an IF-ELSE statement to return a result as a pop-up

386
1
08-11-2024 11:18 PM
BronwenHughes
Regular Contributor

I have a map with two polygon layers:

1. property boundaries (as this layer constantly changes, I am using Council's public REST service that is updated nightly)

2. land zones that require a permit to remove or prune trees (as this layer constantly changes, I am using the REST service from Planning NSW. I applied a filter in the web map to show only the relevant zones)

I would like to create a map for Council's webpage that enables community members to enter their address in the Search widget (using the ArcGIS World Geocoding Service) and get a popup saying "You require a permit to remove trees" if their property intersects the land zone layer or "You do not require a permit to remove trees" if their property doesn't intersect the land zone layer. 

I realise that as the Search widget is using the ArcGIS World Geocoding Service, it is not selecting from the property boundaries layer, so I need a way to make the results of the Search widget select the correct property, then I need to perform an IF-ELSE statement:

IF the selected property polygon intersects the land zone layer, return "You require a permit to remove trees"

ELSE return "You do not require a permit to remove trees"

Is anything like this remotely possible in Experience Builder?

0 Kudos
1 Reply
Ke_Xu
by Esri Regular Contributor
Esri Regular Contributor

Hi  BronwenHughes,

Currently it is only possible to display records in the Text widget when they can be found. When the number of records is greater than or equal to 1, it means that ‘You require a permit to remove trees’ as you mentioned.

Ke_Xu_0-1723796223174.png

Ke_Xu_1-1723796243370.png

 

Thanks,

Ke

 

 

 

 

 

0 Kudos