Description
When viewing an attribute table in ArcGIS Online Map Viewer, some fields are not visible until the [+] button is clicked to display the fields. However, after saving the web map, the attribute table reverts to the original view, and the fields are not visible in the table.
Cause
The fields are not configured to display in the attribute table in the ArcGIS Online pop-up.
Solution or Workaround
Choose one of the methods below to resolve the issue.
Configure the field to be visible from Pop-up Contents
- Log in to the ArcGIS Online organizational account.
- Click Content, and click the My Content tab. Select the hosted feature layer to open the item details page.
- On the item details page, click the Visualization tab.
- On the Visualization page, click the Configure Pop-up icon on the layer.
- Fill in the Pop-up Title box. Under Pop-up Contents, click Configure Attributes.
- In the Configure Attributes window, check the Display check box of the desired field.
- Click OK to close the Configure Attributes window. Click OK again.
- Click Save Layer to save the changes.
Configure the field to be visible from Attribute Expressions
- Log in to the ArcGIS Online organizational account.
- Click Content, and click the My Content tab. Select the hosted feature layer to open the item details page.
- On the item details page, click the Visualization tab.
- On the Visualization page, click the Configure Pop-up icon on the layer.
- Fill in the Pop-up Title box. Under Attribute Expressions, click the ADD button.
- Rename the expression to the desired field name by clicking the Edit icon on the top of the expression editor window, and click Save.
- In the Expression window, copy and paste the following expression script in the Expression box with the desired field name.
return $feature.<fieldname>
- Click OK to close the expression editor window. Click OK again.
- Click Save Layer to save the changes.
The following image shows the desired field is displayed in the attribute table in Map Viewer.