Can You Use Filter Widget To Filter Dynamic Data In Text Widget?

334
3
Jump to solution
11-05-2021 09:10 AM
AndyWells
Occasional Contributor II

I can't figure out if what I want to do is possible. If I have a filter widget, a map, and a string of dynamic text on an Experience Builder page, I want to use the filter to choose a county and have the county name appear as the dynamic text. I have not been able to figure out how to make this work. My text always just remains as the curly brackets field name. I have a sample site set up:

https://experience.arcgis.com/experience/272c435f6d664f5d978f64b7f2e9edc5/

I've tried enabling triggers on the map and the filter, but nothing has worked. I don't have a trigger option on the text. Here is the content I have set up for the text:

AndyWells_0-1636128551639.png

If anyone has a suggestion, please let me know. 
Thanks!

0 Kudos
1 Solution

Accepted Solutions
ShengdiZhang
Esri Contributor

Hi @AndyWells ,

You don't need to use the view of the selected features since the filter widget doesn't automatically select records.

You can add another text widget, choose the default view, and use the same attributes. When the text widget uses a default view, it shows the first record of the data source.

 

Regards,

Shengdi

View solution in original post

3 Replies
ShengdiZhang
Esri Contributor

Hi @AndyWells ,

You don't need to use the view of the selected features since the filter widget doesn't automatically select records.

You can add another text widget, choose the default view, and use the same attributes. When the text widget uses a default view, it shows the first record of the data source.

 

Regards,

Shengdi

AndyWells
Occasional Contributor II

Thanks for the help. I had tried switching the data source for the text widget between Selected and Default, but your response caused me to take a second look and I realized that the Dynamic Content dialog box also needed to be changed to Default. When I did that, it worked.

AndyWells_0-1636492868446.png

 

GabrielleFausel
New Contributor II

I am trying to do something similar. I want my filter widget, when applied to change the title to a specific MCDs chosen as well as certain stats. I am not able to keep the default view selected. It always reverts back to selected.

0 Kudos