This question stems from this Esri Community post. The post linked tends to relate to the search widget within the map widget and not the search widget itself. I have a series of map services within a web map that I will use in the search widget (not the Search radio button on the map widget). When a user searches one of the layers, the result they select should have a pop-up equal to how it is set in the web map such as below.
Brian_McLeer_0-1724700177788.png
With the article linked in this post, has anyone had any success in doing this through actions and triggers on the Search widget?
Brian_McLeer_2-1724700336790.png
Checklist of things I have done:
- Enabled/configured pop-ups in web map.
- Enabled pop-up upon feature selection on the web map in Experience Builder Developer.
Brian_McLeer_1-1724700275404.png
Hi Brian_McLeer,
Have you tried to turn on the "Auto Select the First Result" in Search widget?
Ke_Xu_0-1724719188276.png
Thanks,
Ke
Hi @Ke_Xu, yes, the Auto select the first result was enabled in the Search widget.
Brian_McLeer_0-1724858622622.png
@Ke_Xu, I think I found the missing step. Originally, I was trying to correlate a search web map with a separate web map that I was using in the Map Widget. After adding the search layers to the map that is being used in the Map Widget, I was able to construct the steps in Experience Builder to get the pop-up to show the item being searched.
1. Add search layers to the web map, and turn off visibility.
Brian_McLeer_0-1725034451859.png
2. Turn off the show in the map legend.
Brian_McLeer_1-1725034500289.png
3. Enable and configure pop-ups.
Brian_McLeer_2-1725034622586.png
4. In Experience Builder Developer Edition, add the search layer as a new search source from the layer source.
Brian_McLeer_3-1725034787858.png
5. Under the Action tab, if needed add a newly added source to Zoom and/or Pan trigger.
Brian_McLeer_4-1725034854212.png
6. Add action and framework, Select Data Records, and Select newly added search layer as Trigger data and Action data.
Brian_McLeer_5-1725034933688.png
7. If needed in Layer List, uncheck the newly added search layer so it is not visible.
Brian_McLeer_6-1725035008439.png
Search for a parcel number, map will zoom to and open a pop-up,
Brian_McLeer_7-1725035094786.png
Brian_McLeer_8-1725035184127.png
Reference: https://www.youtube.com/watch?v=eoNje-ZY28k&list=PLeXjHxbU5lmZW2qMTokPl0KOU_E1wrzjA&index=4