How do you get newly added fields to show up in the edit widget?

3436
24
Jump to solution
02-09-2018 01:51 PM
deleted-user-qzyyiYme1rz9
New Contributor III

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?

24 Replies
FrancescoGiovinazzo
New Contributor III

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

View solution in original post

ScottEvans6
New Contributor III

Awesome! Thanks!

FrancescoGiovinazzo
New Contributor III

You are Welcome! Please up-vote the answer if it was helpful solving the problem

0 Kudos
LiviaBetancourtMazur
New Contributor III

Ah, that is helpful to know that the JSON of the map rather than the app should be fixed! Thanks!

0 Kudos
BrandonBoisvert
New Contributor III

It appears I can only view the json... do I need to do something to have editing permissions? 

0 Kudos