Select to view content in your preferred language

Changing Mode in ExB Edit Widget Should Not Remove Config

342
1
07-23-2024 11:42 AM
Status: Open
ZachBodenner
MVP Regular Contributor

When configuring the Edit widget in Experience Builder, we are given the choice between Attribute Only, and Attribute and Geometry edit modes (provided the web service allows for geometry edits). From there, we choose a layer to configure with the widget. If we want to change from one mode to the other, any configuration done on that widget in terms of setting editable fields, their appearance order, etc, is completely wiped away before we are given the choice of the new layer. Why? I'm not sure. Perhaps there is a reason behind the scenes that I am not aware of, but I truly can't understand why the widget works this way. We should not have to reconfigure the Edit widget if we want to change the editing mode on the same layer from attribute only to geometry or vice versa.

My use case: this is a time drain and has cost me needless minutes/hours redoing work.

1 Comment
TimWestern

Likely because all these widgets are react, the props in question are maintained not at the top level of the settings for the widget but way far down in, so when you come back and change it, it re-initializes all of it.