How do I remove "Untitled" heading from the popup "Select Feature" data grid?

121
1
04-16-2024 11:17 AM
GILBERTNG1
New Contributor III

When the popup in the 4.29 JS API is handling 2 or more features, there is a "Select Feature" button on the bottom-right of the popup next to the "<X> of <Y>" label . After clicking on that button, a data grid is rendered with an "Untitled" heading. I am fully aware of the popup.title property in the API, but cannot override the "Untitled" heading on the data grid page only. How do I override it? 

popupgrid1.jpg

0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor

That should be set by the layer's name, either from the web map or the feature service. If you look at this popup sample, that heading is "US Counties". If you look at the web map used in the sample, you'll see that the layer has the title of "US Counties".

For a sample using a service, the heading has "ACS Marital Status Boundaries - Tract",  the service name and layer name.

The empty space next to your symbol for that Untitled layer can have text that is set by the PopupTemplate's title property.

0 Kudos