Add Field Programmatically with JavaScript API

324
1
06-12-2019 04:41 PM
ChrisSeabrooke1
New Contributor III

Is it possible to add a field to an existing feature layer through the JavaScript API? I know how to create a new feature layer and define the fields in it. I'm wondering if it's possible to modify the feature layer's schema through the API.

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Chris,

   No you can not make schema changes to a layer in a map service using the JS API.