<?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 FeatureFormViewModel submit event unexpectedly  emitted on map click in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featureformviewmodel-submit-event-unexpectedly/m-p/1498190#M84938</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use Editor widget on the map, and watch "submit"&amp;nbsp;event on its&amp;nbsp;FeatureFormViewModel to write custom behaviour.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;editor.viewModel.featureFormViewModel.on(
      'submit',
      (state) =&amp;gt; {
        // custom code
      }
    );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But also I ran into a case when I click on the map outside of&amp;nbsp; the Editor widget the same "submit" event gets emitted and callback gets called.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone aware what could cause the FeatureFormViewModel's submit event to be triggered beside click on submit button on the form? Or how to avoid such behaviour?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 11:35:17 GMT</pubDate>
    <dc:creator>AnastasiiaD</dc:creator>
    <dc:date>2024-06-27T11:35:17Z</dc:date>
    <item>
      <title>FeatureFormViewModel submit event unexpectedly  emitted on map click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featureformviewmodel-submit-event-unexpectedly/m-p/1498190#M84938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use Editor widget on the map, and watch "submit"&amp;nbsp;event on its&amp;nbsp;FeatureFormViewModel to write custom behaviour.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;editor.viewModel.featureFormViewModel.on(
      'submit',
      (state) =&amp;gt; {
        // custom code
      }
    );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But also I ran into a case when I click on the map outside of&amp;nbsp; the Editor widget the same "submit" event gets emitted and callback gets called.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone aware what could cause the FeatureFormViewModel's submit event to be triggered beside click on submit button on the form? Or how to avoid such behaviour?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 11:35:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featureformviewmodel-submit-event-unexpectedly/m-p/1498190#M84938</guid>
      <dc:creator>AnastasiiaD</dc:creator>
      <dc:date>2024-06-27T11:35:17Z</dc:date>
    </item>
  </channel>
</rss>

