I am having two separate problems with configuring popups, but since I stumbled on the second issue while finding a work around to the first I'll just post them together.
Problem #1: I have an existing map on ArcGIS.com that has pop-ups enabled and configured. The layers in the map are all based on map services from our ArcGIS Server. A new field was added to the source data, the map service was restarted, the cache was cleared, etc. I now want to add the new attribute to the pop-up in my map, but when I go to "Pop-up Properties" and click on "Configure Attributes" the new field does not appear. How do I add this new field to my pop-up? It's not recognizing any schema changes made to the layer after it has been added to the map.
Problem # 2: In my efforts to get this new field to appear in the pop-up, I removed the layer from my map and added it over again. The new attribute appears, but now I must reconfigure everything - symbology, visibility range, pop-ups, etc. That's a hassle, so hopefully problem #1 stated above can be resolved. So here is problem two - when I try to configure the pop-up media on the layer that I just re-added to my map, the image will not appear in the pop-up if I leave the "Title" blank (by default it says Image 1). This has not been a problem in the past. I have configured many pop-ups in this map as well as others and I always just delete out the default title so that my pop-up displays just the picture, no text. What's going on or what changed? In order for the image to appear, must I now give it a title? The popups that were configured this way on the other layers still work fine, I'm only experiencing this when configuring the media pop-up on newly added layers. :confused:
1. When a popup is configured, the current fields in the map service are stored in the web map. Thus, even though the fields in the service changed, the web map will not reflect the change. The solution is to remove and add the layer again, as you've found. Admittedly, this is a bit inconvenient because you lose all the configuration you made to the layer. This is an issue we are aware of but have no immediate timetable for when it will be addressed. It's a bit tricky to solve all cases of field changes. In your case, adding a field would be relatively easy to address. However, if fields are renamed or deleted and the popup utilized those fields, we'd have to help you see where your popup is incorrectly configured.
2. The fact that you can't have a blank title is a bug that was introduced with our last update. Extending ArcGIS.com to support multiple languages caused this problem. The only workaround at this time is to have a field in your map service with all blank values. Assigning the title to this field would yield the same result you had previously. This will be addressed in our next update.
1. When a popup is configured, the current fields in the map service are stored in the web map. Thus, even though the fields in the service changed, the web map will not reflect the change. The solution is to remove and add the layer again, as you've found. Admittedly, this is a bit inconvenient because you lose all the configuration you made to the layer. This is an issue we are aware of but have no immediate timetable for when it will be addressed. It's a bit tricky to solve all cases of field changes. In your case, adding a field would be relatively easy to address. However, if fields are renamed or deleted and the popup utilized those fields, we'd have to help you see where your popup is incorrectly configured.
2. The fact that you can't have a blank title is a bug that was introduced with our last update. Extending ArcGIS.com to support multiple languages caused this problem. The only workaround at this time is to have a field in your map service with all blank values. Assigning the title to this field would yield the same result you had previously. This will be addressed in our next update.
Mike, Thank you so much for the response. I thought it might be a bug from the recent update. I did as you suggested and added an empty field to that layer. That seems to do the trick for now. Thanks again! ~Stephanie