Edit Widget change field from 'isEditable':false to 'isEditable':true

739
2
03-23-2017 03:52 PM
JoseSanchez
Occasional Contributor III

Hello everyone,

On the Edit Widget, how can I change a field from isEditable true to false. I need to customize an individual field in the attribute inspector using fieldInfos object

In the config file the field is defined as isEditable':true, but is some cases it has to be changed to 'isEditable':false 

Thanks

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Jose,

   In the edit widget there is a layerInfosParam array:

this.layerInfosParam[x].fieldInfos[y].isEditable

I have not had the need to do this every (so you are main on your own here) but if you loop through the layerInfosParam and check the featureLayer.id to be sure you are editing the right FL and then loop through the fieldInfos for that desired layer and set the isEditable to what you want.

0 Kudos