<?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 How to enable validation form in Editor widget? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-enable-validation-form-in-editor-widget/m-p/1289530#M81174</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;i have editor widget with one field. How i can validate field before finish (create/edit) polygon and show error message in field?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    editor = new Editor({
      view: mapView,
      layerInfos: [
        {
          layer: areasLayer.getLayer(),
          formTemplate: {
            elements: [
              {
                // &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/69004"&gt;@ts&lt;/a&gt;-ignore-next-line
                fieldName: "areaId",
                type: "field",
                domain: new CodedValueDomain({
                  codedValues: areasModel
                    .getModel()
                    .map((item) =&amp;gt; ({ code: item.id, name: item.name })),
                }),
                label: "Область",
              },
            ],
          },
        },
      ]
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i didn't found it information in docs, but guess it's opportunity should exist&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2023 11:24:14 GMT</pubDate>
    <dc:creator>KirillMalyakin</dc:creator>
    <dc:date>2023-05-16T11:24:14Z</dc:date>
    <item>
      <title>How to enable validation form in Editor widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-enable-validation-form-in-editor-widget/m-p/1289530#M81174</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;i have editor widget with one field. How i can validate field before finish (create/edit) polygon and show error message in field?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    editor = new Editor({
      view: mapView,
      layerInfos: [
        {
          layer: areasLayer.getLayer(),
          formTemplate: {
            elements: [
              {
                // &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/69004"&gt;@ts&lt;/a&gt;-ignore-next-line
                fieldName: "areaId",
                type: "field",
                domain: new CodedValueDomain({
                  codedValues: areasModel
                    .getModel()
                    .map((item) =&amp;gt; ({ code: item.id, name: item.name })),
                }),
                label: "Область",
              },
            ],
          },
        },
      ]
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i didn't found it information in docs, but guess it's opportunity should exist&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 11:24:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-enable-validation-form-in-editor-widget/m-p/1289530#M81174</guid>
      <dc:creator>KirillMalyakin</dc:creator>
      <dc:date>2023-05-16T11:24:14Z</dc:date>
    </item>
  </channel>
</rss>

