<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JS API 4.X: Editor widget - FormTemplate cannot have empty array of elements in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-x-editor-widget-formtemplate-cannot-have/m-p/1219331#M78917</link>
    <description>&lt;P&gt;Dear JS API team,&lt;/P&gt;&lt;P&gt;I am wondering what is it not possible in the editor widget to have an empty array of elements in the FormTemplate ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#elements" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#elements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you set an empty array, all the attributes appear. You need to have at least one.&lt;/P&gt;&lt;P&gt;In my use case, I just want user to edit the geometry.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/fdfdsfsdfsdfwetwg/pen/poVOEqm" target="_blank" rel="noopener"&gt;https://codepen.io/fdfdsfsdfsdfwetwg/pen/poVOEqm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the meantime, any workaround to suggest ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for listening !&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 14:27:20 GMT</pubDate>
    <dc:creator>NicolasGIS</dc:creator>
    <dc:date>2022-10-06T14:27:20Z</dc:date>
    <item>
      <title>JS API 4.X: Editor widget - FormTemplate cannot have empty array of elements</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-x-editor-widget-formtemplate-cannot-have/m-p/1219331#M78917</link>
      <description>&lt;P&gt;Dear JS API team,&lt;/P&gt;&lt;P&gt;I am wondering what is it not possible in the editor widget to have an empty array of elements in the FormTemplate ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#elements" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#elements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you set an empty array, all the attributes appear. You need to have at least one.&lt;/P&gt;&lt;P&gt;In my use case, I just want user to edit the geometry.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/fdfdsfsdfsdfwetwg/pen/poVOEqm" target="_blank" rel="noopener"&gt;https://codepen.io/fdfdsfsdfsdfwetwg/pen/poVOEqm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the meantime, any workaround to suggest ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for listening !&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 14:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-x-editor-widget-formtemplate-cannot-have/m-p/1219331#M78917</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2022-10-06T14:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.X: Editor widget - FormTemplate cannot have empty array of elements</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-x-editor-widget-formtemplate-cannot-have/m-p/1219366#M78921</link>
      <description>&lt;P&gt;Rather brute-force way but you could do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;      .esri-editor__panel-content__section__group{
        display:none;
      }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the above to your CSS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;            const editor = new Editor({
              view: view,
              layerInfos: [pointInfos],
              allowedWorkflows: "update"
            });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tweak the editor with the last line of the code: allowedWorkflows: "update".&lt;BR /&gt;&lt;BR /&gt;Your users will only be able to select a feature and then update its geometry - the attributes will be hidden.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:04:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-x-editor-widget-formtemplate-cannot-have/m-p/1219366#M78921</guid>
      <dc:creator>LukeCalladine</dc:creator>
      <dc:date>2022-10-06T15:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: JS API 4.X: Editor widget - FormTemplate cannot have empty array of elements</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-x-editor-widget-formtemplate-cannot-have/m-p/1277720#M80842</link>
      <description>&lt;P&gt;Issue is still there in 4.26.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thought from ESRI team ? Does it look like an expected behavior&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/994"&gt;@HeatherGonzago&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Thanks for listening !&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 10:23:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-x-editor-widget-formtemplate-cannot-have/m-p/1277720#M80842</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2023-04-12T10:23:08Z</dc:date>
    </item>
  </channel>
</rss>

