I recently added a few fields to a feature service and they show up correctly in pop-up in the map, however when I edit the settings for the edit widget web appbuilder the new attribute is not visible as an option for editable or viewable attributes. I have also tried completely deleting the edit widget, saving and re-adding it with no luck. The edit box is checked next to the new attributes in the pop-up configuration. I really need to make this new field editable via the edit widget in our app. Any ideas?
Solved! Go to Solution.
I think I am going to save a lot of lives here, because I have discovered a workaround that fixes the problem.
By using Livia suggestion and checking ArcGIS Online Assistant (which I suggest to use, is very powerful) I doscovered that the real problem is not in the editor nor the app, it is in the MAP!
If you open the map json and scroll to your layer information, you will discover the fields definitions, something like:
{
"fieldName": "NOTE_RISOLUZIONE",
"label": "NOTE_RISOLUZIONE",
"isEditable": true,
"tooltip": "",
"visible": true,
"stringFieldOption": "textarea",
"isEditableOnLayer": true
},
This definition is perfectly correct, but if you scroll to your NEWLY ADDED FIELDS
{
"fieldName": "CATEGORIA",
"label": "CATEGORIA",
"isEditable": false,
"visible": true,
"stringFieldOption": "textbox"
},
See something missing?
"isEditableOnLayer": true
This option is not getting added when you add new fields to a service, thus not working correctly in the Editor Widget
Add that option to true, save the json, open your WAB and shazam!, your newly added fields will be in the editor widget config window.
IMHO this is a BUG and should be addressed by ESRI
Awesome! Thanks!
You are Welcome! Please up-vote the answer if it was helpful solving the problem
Ah, that is helpful to know that the JSON of the map rather than the app should be fixed! Thanks!
ok.... but ... naïve question : from Arcgis online, where do you get to see the json of your map??
I used the ArcGIS Online Assistant as recommended above... you can find that here: https://ago-assistant.esri.com/
You need to log into your account as prompted then at the top of the page there is an "I want to..." button, clicking that opens a drop down menu where you can select the option to view and item's JSON
Once you've selected that you can search for your map in your contents folders in blue on the left side of the page. Open the folder where the map is located and click on the item ID to open the JSON.
Hi All, I am expireanceing this issue.
When I add new fields to a hosted feature layer they are visable in the other widjets but not visable in the edit widget.
I know this is an old thread but Is there any additional information to having newly added fields usable in an edit widget without having to go through AGOL assistant?