Select to view content in your preferred language

Button Widget and Anchor Widget

200
4
2 weeks ago
MelanieNeedle
Regular Contributor

Hello, 

I am using the button widget to open the anchor widget. The anchor widget will display instructions on using the app. I have it all working but the anchor widget appears only after two clicks which is annoying and makes for a confusing user experience. I have configured these two widgets in other EBs but this one is proving to not do what I expect and all the setting are the same (I think?). The behavoir I want is user clicks button widget and anchor appears. 

here is the app:  https://experience.arcgis.com/experience/96b67c718ddb4a829975bf78fa7fe978?draft=true

 

Thanks!

0 Kudos
4 Replies
ShengdiZhang
Esri Regular Contributor

Hi @MelanieNeedle ,

Currently, the designed behavior is that clicking any widget inside a controller (including the button widget) will first open the widget panel.

One workaround is to use a standalone button outside of the controller. Here's a suggested button widget setting to achieve a similar visual style:

ShengdiZhang_0-1753839344147.png

ShengdiZhang_1-1753839348517.png

To ensure the standalone button aligns visually with the controller, you can place both the controller and the button inside a Fixed panel widget, with the size set in pixel (px) units.

Please let me know if you have other questions.

Thanks,

Shengdi

 

0 Kudos
DanCopKac
Frequent Contributor

This solution becomes very difficult to handle when adjusting the controller and standalone button widgets to always be beside each other in the same configuration as the screen size changes, or between different layout sizes. Any solutions to that? 

0 Kudos
MelanieNeedle
Regular Contributor

I agree. The fixed panel helps a bit ( although clunky to configure)  it does not create a seamless look. Also when resizing be aware that setting size and position in the style section from % to px helps. 

0 Kudos
JeffreyThompson2
MVP Frequent Contributor

Place the Widget Controller and any additional Buttons into a Flow Row Widget.

Or completely replace the Widget Controller with a set of Buttons in a Flow Row Widget.  https://community.esri.com/t5/experience-builder-tips-and-tricks/the-diy-widget-controller-part-ii-t...

GIS Developer
City of Arlington, Texas
0 Kudos