Select to view content in your preferred language

Edit Widget opening from within closed sidebar when selecting features

525
6
Jump to solution
03-03-2025 06:05 PM
Labels (1)
David_KO
Emerging Contributor

I have an experience with a map and 3 nested sidebars, one of which contains an Edit widget. When the sidebar containing the edit widget is collapsed and a feature is selected on the map the Edit widget automatically opens and pushes some content out of the screen. When this happens, the sidebar containing the edit widget is still considered 'collapsed' and can then be 'expanded' to fix the content pushed out of screen and then collapsed again to hide the Edit widget.

This behaviour is non-intuitive to me and I believe it is a bug. I have been unable to find other descriptions of this behaviour online and unable to find a fix through the widget settings.

Are there any known workarounds that would allow the Edit widget to remain hidden when selecting features on the map or tables? Users need to be able to add new features so the Edit widget must remain set to "Interact with a Map widget" rather than "Attribute only"

 

GIF of edit widget opening when selecting a feature on the mapGIF of edit widget opening when selecting a feature on the map

 

0 Kudos
1 Solution

Accepted Solutions
AlixVezina
Esri Regular Contributor

@David_KO 

After looking into this further, Shengdi and the team were able to confirm that there is a bug. This will be fixed with our next release, which is usually around June.

In the meantime, there are some workaround options using a Button widget you may consider:

See sample: https://experience.arcgis.com/experience/642387537173411a939c2bf7dd469e08

1. Place the Edit widget inside a Widget Controller and use a Button widget to open the Edit widget in the controller (setup a message action in the Button widget). You can hide the controller somewhere on the page (even behind the Button itself!) and use the Button to open the widget which may be more friendly to your users.

AlixVezina_0-1741183700130.png

2. Place the Edit widget inside a window and again use a Button to open the window as a side panel.

AlixVezina_1-1741183716916.png

 

For both of the options above, the Edit widget will only open when the button is clicked and will not open randomly when a feature is selected.

 

 

 

View solution in original post

6 Replies
ShengdiZhang
Esri Regular Contributor

Hi @David_KO ,

You can add the message action "Record selection changes - Sidebar - Open sidebar" to the map and table widgets.

Please let me know if you have other questions.

Thanks,

Shengdi

0 Kudos
David_KO
Emerging Contributor

Hi @ShengdiZhang,

Adding the "Open sidebar" action will mean that the sidebar opens automatically every time I select a record.

While that prevents the content being pushed out-of-screen, it does not facilitate the functionality that I am after: the Edit widget should remain hidden in the collapsed sidebar until the sidebar is expanded manually. 

0 Kudos
AlixVezina
Esri Regular Contributor

@David_KO 

After looking into this further, Shengdi and the team were able to confirm that there is a bug. This will be fixed with our next release, which is usually around June.

In the meantime, there are some workaround options using a Button widget you may consider:

See sample: https://experience.arcgis.com/experience/642387537173411a939c2bf7dd469e08

1. Place the Edit widget inside a Widget Controller and use a Button widget to open the Edit widget in the controller (setup a message action in the Button widget). You can hide the controller somewhere on the page (even behind the Button itself!) and use the Button to open the widget which may be more friendly to your users.

AlixVezina_0-1741183700130.png

2. Place the Edit widget inside a window and again use a Button to open the window as a side panel.

AlixVezina_1-1741183716916.png

 

For both of the options above, the Edit widget will only open when the button is clicked and will not open randomly when a feature is selected.

 

 

 

David_KO
Emerging Contributor

Thanks for the suggestions @AlixVezina

I had tried using a resizable sidebar (without the button to collapse) and simply shrinking the size when not in use. This allowed me to utilise most of the screen for the rest of the experience and also allowed the edit widget to 'stretch' the rest of the map rather than overlaying.

Unfortunately this solution resulted in the pop-ups not displaying due to the edit widget being loaded - behaviour mentioned in other posts here and here. This is a deal breaker for us so I have had to revert to the Window solution.

Thanks for your help!

0 Kudos
AlixVezina
Esri Regular Contributor

You could perhaps use the Feature Info widget in a Widget Controller to customize the display of popups? You can use a Message action to trigger the Feature Info widget to open from the Controller, as I described earlier with the Button. In this way, popups would display even when the Edit widget is loaded.

I added an example to the sample; click a feature in the map to observe. https://experience.arcgis.com/experience/642387537173411a939c2bf7dd469e08

Note: I turned popups OFF in the Map widget options, otherwise you may end up with 2 popups displaying in some cases.

 

 

AlixVezina
Esri Regular Contributor

@David_KO I believe I'm able to reproduce the issue you're seeing. We'll look into it further. Thank you!