Using the Edit Widget in Experience Builder 1.17, after multiple features are selected the features are listed with their display labels. Is there any way to customize with complex (composite) expressions what is displayed for the labels on the multiple features list? We want to use composite fields, and what is displayed here seems to correspond to the displayField attribute of the layer configuration. However, this field only supports single fields, not multiple...
Also the configuration for the popup title, which does allow complex expressions, seem to have no effect on the displayField for the features... The only suggestion online appears to be to create a composite field for each featurelayers and populate that with triggers. But I am wondering there is any client side solution with complex expressions like for the popup template. Or any way of even customizing the built-in edit widget... literature seems to suggest the logic is embedded in the Editor class which the edit widget uses, and there is no source code available for that. So the server side solution seems only straightforward option, but wanted to check here. Why doesn't the displayField support multiple fields? Why doesn't label setting for the popups translate into the displays for the edit/editor widget?
PS: The version used is experience builder 1.17.
Solved! Go to Solution.
Had to use composite field on the backend at the featurelayers, with triggers to update the field... the displayField that is picked up by the edit widget only allows single columns... popup title, labels, smart forms, display properties page in arcpro, they all allow complex expressions, but these are not used by the edit widget... (server side solution seems clunky and performance penurity at the database level, and an extra field to maintain... only other option is to use updateable views... but client side approach apparently will requires modification to the editor class for which source code is not available except as compressed js files...)
Some stuff in Experience Builder is controlled by the webmap. In the Web MapViewer, open up the labeling options, this will give you a ton of choices including Arcade.
Are you referring to the labels for the features that is displayed on the map?
This seem only to affect the labels on the map.
We need to customize the Edit widget here... (on the right)
Unfortunately the settings for the label (nor the popup title) seem to translate to the labels on the Edit widget. These seem to come from the displayField attribute on the layers themselves, which only seem to support single columns... (?) The only options suggested online seem to be using a composite field with triggers to populate it on the layers themselves and pointing to that, or maybe rewriting/replacing the Editor class itself which seems to handle the displays for the multiple features on the Edit widget... I am wondering if these are the only 2 options available unless Esri decides to update the Edit/Editor widget... (Thanks...)
Ah, those labels. You might be able to change them by configuring the Smart Form.
Had to use composite field on the backend at the featurelayers, with triggers to update the field... the displayField that is picked up by the edit widget only allows single columns... popup title, labels, smart forms, display properties page in arcpro, they all allow complex expressions, but these are not used by the edit widget... (server side solution seems clunky and performance penurity at the database level, and an extra field to maintain... only other option is to use updateable views... but client side approach apparently will requires modification to the editor class for which source code is not available except as compressed js files...)