Select to view content in your preferred language

Have Layer Toggled Off Until Selected In List

694
8
01-20-2026 12:06 PM
Labels (1)
sophered
Frequent Contributor

Hello!!! 

I'm hoping this is a very easy fix, it seems very straightforward. I'm trying to have layer visibility toggled off until one of the features in the layer is selected in the list widget. Basically so that it can show only 1 feature at a time. A lot of the features overlap, so that's why I want it to be toggled off until a feature is selected so that it can show only 1 feature at any time. 

Let me know if anyone needs any further details. 

Thanks!!

0 Kudos
8 Replies
VenkataKondepati
Frequent Contributor

I think you can achieve this with the Message action combined with the Data Filter.

You need to set your layer to appear empty by going to the Map Widget settings and applying a dummy filter (such as OBJECTID = -1) under the Filter tab.

Navigate to the List Widget settings, open the Action tab, and add a trigger for Record selection changes targeting your Map Widget.

Select the Filter Data Records action and ensure the data source matches. 

You can find more details from the ESRI documentation below:
https://doc.arcgis.com/en/experience-builder/latest/configure-widgets/action-triggers.htm

Please let me know if this helps you.

Regards,
Venkat
Book a meeting with me:Get on a Call
Follow me on: LinkedIn

If this response helps or is the solution to your post, please consider marking it as a solution
0 Kudos
sophered
Frequent Contributor

When you say map widget settings, are you talking about the settings on the layer in the map, shown here?

sophered_0-1768943645100.png

Or do you mean within the map data actions here?

sophered_1-1768943683398.png

Or on the map specifically itself?

0 Kudos
VenkataKondepati
Frequent Contributor

The 1st image is correct and should work.

Regards,
Venkat
Book a meeting with me:Get on a Call
Follow me on: LinkedIn

If this response helps or is the solution to your post, please consider marking it as a solution
0 Kudos
sophered
Frequent Contributor

Hmm it seems like whenever I set the filter on the layer specifically in that data tab, it does cease to show up on the map. However, the data action does not override it, so it just does nothing when selected in the list. This did seem promising though, it just seems like the layer stays filtered by the object id = -1, and ignores the data action filter. 

0 Kudos
VenkataKondepati
Frequent Contributor

Do you have time for a call? If yes, you can book a time using the link in my signature.

You need to do 3 items to get it working.

Regards,
Venkat
Book a meeting with me:Get on a Call
Follow me on: LinkedIn

If this response helps or is the solution to your post, please consider marking it as a solution
0 Kudos
VenkataKondepati
Frequent Contributor

This video shows how to configure and match with your requirements.
https://youtu.be/Keoq_aV2O2A

Regards,
Venkat
Book a meeting with me:Get on a Call
Follow me on: LinkedIn

If this response helps or is the solution to your post, please consider marking it as a solution
ArcGIS Experience Builder empowers you to transform your data into web apps and web pages without coding. Flexibility, integration, mobile otimization are keys that set it apart from alternatives. Learn the building blocks of Experience Builder including pages, windows, widgets, data sources ...
0 Kudos
sophered
Frequent Contributor

Unfortunately I do not have time for a call, thank you for offering though! Is there any chance you could outline those 3 steps for me in order to get it working?

0 Kudos
VenkataKondepati
Frequent Contributor
  1. You need to set your layer to appear empty by going to the Map Widget settings and applying a dummy filter (such as OBJECTID = -1) under the Filter tab.
  2. Navigate to the List Widget settings, open the Action tab, and add a trigger for Record selection changes targeting your Map Widget.
  3. Select the Filter Data Records action and ensure the data source matches.
Regards,
Venkat
Book a meeting with me:Get on a Call
Follow me on: LinkedIn

If this response helps or is the solution to your post, please consider marking it as a solution
0 Kudos