ArcGIS Online: Reordering Fields in Hosted Feature Layer from Data Page

8571
10
04-23-2017 03:13 PM
HenryHaro
New Contributor

Hi all, I'm using ArcGIS Online and I'm wondering if there is a way to rearrange the fields of a hosted layer file. I know you can change their order and if they're displayed or not when configuring layer attributes in a Web Map, but I'm curious if there is a way to change them in the Hosted layer file itself so that the order is reflected when the layer is imported into another map. So far I've had to reorder the fields every time I start a new map and it's become really time consuming. Any hints would be appreciated. Thanks!

10 Replies
JamesWright1
New Contributor

I know this post was along time ago but I have a solution.

- Open the visualization tab of your hosted feature layer.

- Configure the pop up of the layer.

- Click configure attributes 

- Click on the field you wish to move and use the arrows on the right to move it up or down the order. 

- Once you are finished moving, hit ok 2x then save the layer.

Your reordering of fields has now been made to the hosted feature layer itself and will be maintained in any map you now add it to!

LeifJohnson3
Occasional Contributor II

This is a lifesaver James.  Thank you! James Wright

JimmyKnowles
Occasional Contributor II

I'll just add one caveat to this. This only affects the pop-up configuration. If you were to download this feature service as fgdb, it is likely that the newly added field would be at the end of your list. This will not affect the definition of the feature service itself.

From what I can tell, it is not possible to change the order of fields in the service definition itself. Even though configuring the pop-up will generate the desired results in most cases, it won't in all. Even when using the REST admin interface, you can't use 'Update Definition' to reorder fields. You can only use 'Add To Definition' to add fields or 'Delete From Definition' to delete fields.

Paul_Christensen
Occasional Contributor

While I am able to get this method to work for attribute tables in WebMaps, these settings do not carry over into a WebApp attribute table that is created from the map. 

RobertThomas3
New Contributor

Unfortunately this doesn't actually reorder the fields in the layer's attribute table, only the popup.  So when you export the data (like to a csv where you need to paste it into another document with a different order) it's still the same. Really frustrating that such a basic function seems to be absent.

arthurV
New Contributor III

This is really a missing function. Is there at least a workaround using the desktop app then reuploading the layer to ArcGIS Online?

arthurV
New Contributor III

It is really fascinating that some very simple function are just completely ignored by ArcGIS. It's like "pay but do not hope for answer".

AndreaGalligari
New Contributor

If we have to start listing all the very basic features that ESRI ignored we would end next year. This is just because there is no real competitor in the GIS market so ESRI is just ¯\_(ツ)_/¯

0 Kudos
Paco
by
Occasional Contributor

Hi @arthurV .    the only way I know of re-ordering Fields permanently(from a Feature Class/Feature Service) is to Export(right-click Data-Export Features) to a new Feature Class.  in the Export Features dialog box you can rearrange and drag the 'Fields'.  the Exported Feature Class will have the permanent change.

obviously you would have to re-create the Feature Service from there.

good luck!

p

0 Kudos