<?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 Re: Editor Widget issue when setting no attributes updatable - geometry only in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-issue-when-setting-no-attributes/m-p/1065648#M73420</link>
    <description>&lt;P&gt;How about leaving the fields in but not allowing them to be edited, such as:&lt;/P&gt;&lt;LI-CODE lang="c"&gt; fieldConfigs: [{
     name: "HazardType",
     label: "Hazard Type",
     editable: false,
     direction: "asc"
},
{
    name: "descrip",
    label: "Description", 
    editable: false,
     direction: "asc"
},
{...&lt;/LI-CODE&gt;&lt;P&gt;There is also a 'showNoValueOption' setting that might work (not much help on it).&amp;nbsp; Or maybe the 'visibilityExpression' that ties to an Arcade expression that is always false?&lt;/P&gt;&lt;P&gt;&lt;A title="Field Config Settings" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#showNoValueOption" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#showNoValueOption&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jun 2021 15:01:27 GMT</pubDate>
    <dc:creator>JeffreyWilkerson</dc:creator>
    <dc:date>2021-06-07T15:01:27Z</dc:date>
    <item>
      <title>Editor Widget issue when setting no attributes updatable - geometry only</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-issue-when-setting-no-attributes/m-p/1065629#M73418</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have to modify features, but geometries only, attributes should not be shown nor updated.&lt;/P&gt;&lt;P&gt;So, as by default Editor&amp;nbsp;fieldConfig is exposing all attributes, I tried to empty it with null, [] or [{}].&lt;/P&gt;&lt;P&gt;Unfortunately all these values are causing many issues and errors in the javascript console.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/Chris_Siveco/pen/dyvKzNP" target="_blank" rel="noopener"&gt;https://codepen.io/Chris_Siveco/pen/dyvKzNP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there a way to edit only geometries with the Editor widget ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 14:21:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-issue-when-setting-no-attributes/m-p/1065629#M73418</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2021-06-07T14:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Widget issue when setting no attributes updatable - geometry only</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-issue-when-setting-no-attributes/m-p/1065648#M73420</link>
      <description>&lt;P&gt;How about leaving the fields in but not allowing them to be edited, such as:&lt;/P&gt;&lt;LI-CODE lang="c"&gt; fieldConfigs: [{
     name: "HazardType",
     label: "Hazard Type",
     editable: false,
     direction: "asc"
},
{
    name: "descrip",
    label: "Description", 
    editable: false,
     direction: "asc"
},
{...&lt;/LI-CODE&gt;&lt;P&gt;There is also a 'showNoValueOption' setting that might work (not much help on it).&amp;nbsp; Or maybe the 'visibilityExpression' that ties to an Arcade expression that is always false?&lt;/P&gt;&lt;P&gt;&lt;A title="Field Config Settings" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#showNoValueOption" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#showNoValueOption&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 15:01:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-issue-when-setting-no-attributes/m-p/1065648#M73420</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2021-06-07T15:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Widget issue when setting no attributes updatable - geometry only</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-issue-when-setting-no-attributes/m-p/1065959#M73430</link>
      <description>&lt;P&gt;Actually, with something like I made it work :&lt;/P&gt;&lt;LI-CODE lang="c"&gt; const pointInfos = {
              layer: pointLayer,
              fieldConfig: [{
                name: "HazardType",
                label: "Hazard type",
                editable: false,
                visibilityExpression:"1==2" //Here is the Trick not to have any attributes editable nor shown !
              }]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT, after reviewing my codepen code, I also made it work with a regular fieldConfig: []&lt;/P&gt;&lt;P&gt;So, may be there was a bug in my original codepen.&lt;/P&gt;&lt;P&gt;Thank you Jeffrey&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 12:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-issue-when-setting-no-attributes/m-p/1065959#M73430</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2021-06-08T12:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Widget issue when setting no attributes updatable - geometry only</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-issue-when-setting-no-attributes/m-p/1066010#M73431</link>
      <description>&lt;P&gt;That second option looks a lot simpler&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 14:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-issue-when-setting-no-attributes/m-p/1066010#M73431</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2021-06-08T14:42:00Z</dc:date>
    </item>
  </channel>
</rss>

