Select to view content in your preferred language

New Map Viewer Popup Field Ordering

6264
14
Jump to solution
05-18-2021 12:58 PM
AdamMesser1
Regular Contributor

Field order is being sorted alphabetically in the popup configuration when a feature service is added to the New Map Viewer. Is there a way to make the map viewer honor the original field ordering as shown in the feature table?

Resorting the original order is problematic as field order is set to facilitate ease of data viewing or entry. Unfortunately, the caveat on the popup configuration mentions "Popups offered in map viewer are not compatible with all apps." This appears to be the same issue that @MarkEastwood experienced with his collector post. We are working on a configurable editing app which apparently does not honor new map viewer popup configurations. I tried using Experience Builder, assuming that the problem may be due to the underlying javascript api 3x/4x compatibility, but EB does not yet have an editing widget. It does not appear the popup reorder is honored in Field Maps either. Given this we are spending time to redo our work to use the Map Viewer Classic unless Esri has recommendations on using the new map viewer for editing wit original field order.

 

14 Replies
ThomasHamill
Frequent Contributor

Here's how to reset the layer pop-up to the default attribute order of its schema in the Map Viewer (i.e. reverse the automatic alphabetical sort on fields in the pop-up that seems to be the default when a new layer is added to a web map):

1) In the Map Viewer (not Map Viewer Classic), select the layer of choice from the Layers Pane table of contents (left sidebar)
2) Select the Pop-ups button from the layer settings (right sidebar)
3) Select the existing Fields list button with the fields currently in alphabetical order
4) Click the Select fields button (which will change to Deselect all)
5) Click the Deselect all button (which will change back to Select all) to turn off all fields
6) Click Select all once more—notice the order reset in the "dimmed" Fields list menu that appears behind the active Select fields menu
7) Click Done at the bottom of the Select fields menu
😎 To save these changes, don't forget to click Save from the Save and open menu (left sidebar)

ThomasHamill_0-1720018660615.png

Related idea: Show Pop-ups in Attribute order rather than Alphabetical by Default

Kindest Regards,

t
RyanTucker
Regular Contributor

This workaround is better than using map viewer classic.  Thank you.

ESRI still needs to make this the default behavior.  

cat206
by
Frequent Contributor

This is so helpful! Thank you Thomas!

0 Kudos
AdamMesser1
Regular Contributor

@ThomasHamill Thank you for the solution and link to related post.

0 Kudos
ThomasHamill
Frequent Contributor

Also, I'm seeing that while this is a solution for the attribute pop-up in the Map Viewer, the field order of the edit menu/dialog in the Map Viewer remains unchanged and would still unfortunately show the default attribute order of the layer's schema; I don't believe the field order in the edit menu can be customized.

Hopefully Esri can ensure the field order changes are propagated down to the attribute edit menu as well.

Kindest Regards,

t
0 Kudos