<?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: Smart Editor populate field with default value in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127773#M21709</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VincentRobinson_0-1640032104344.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30084iC8A66003BB9FFE94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VincentRobinson_0-1640032104344.png" alt="VincentRobinson_0-1640032104344.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks for the quick reply, I did try this but it didn't work, or maybe I've misunderstood how it works.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 20:30:28 GMT</pubDate>
    <dc:creator>VincentRobinson</dc:creator>
    <dc:date>2021-12-20T20:30:28Z</dc:date>
    <item>
      <title>Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1056706#M20812</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am using Smaprt Editors with WAB in Portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to populate a field with the value "No", before the editors starts editing.&lt;/P&gt;&lt;P&gt;Also I would like to disable edits in this same field and predefide its value to "No".&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:23:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1056706#M20812</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2021-05-11T15:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1056721#M20813</link>
      <description>&lt;P&gt;The smart edit widget should provide all of this&amp;nbsp;&lt;BR /&gt;&lt;A href="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-smart-editor.htm" target="_blank"&gt;Smart Editor widget—ArcGIS Web AppBuilder | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;has info on setting default values, and I believe the smart edit widget has checkboxes for editable fields.&lt;BR /&gt;&lt;BR /&gt;If you want to set up a more complex data structure with preset field values/dropdowns etc. you should probably look at Subtypes and Domains&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/an-overview-of-attribute-domains.htm" target="_blank"&gt;Introduction to attribute domains—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:48:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1056721#M20813</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-11T15:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1056733#M20814</link>
      <description>&lt;P&gt;Found it. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under General setting, there is a button called "Defined Preset"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1056733#M20814</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2021-05-11T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1056740#M20815</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7474"&gt;@JoseSanchez&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your question.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;I am looking for a way to populate a field with the value "No", before the editors starts editing.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the Attribute Actions section of the Smart Editor widget configuration, you will be able to set Presets to achieve this: &lt;A href="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-smart-editor.htm#ESRI_STEP_3567547C5077425F9DEDC7DE33C052EE" target="_self"&gt;Preset Attribute Actions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;&lt;SPAN&gt;Also I would like to disable edits in this same field and predefine&amp;nbsp;its value to "No".&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the Smart Actions section of the Smart Editor widget configuration, you will be able to set a new expression to achieve this: &lt;A href="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-smart-editor.htm#ESRI_SECTION2_6F6AADE7A67F4EB986E8CF4CD085B344" target="_self"&gt;Smart Actions&lt;/A&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;There are some example for this functionality in this video:&amp;nbsp;&lt;A href="https://youtu.be/El2oqpdunJU?t=281" target="_self"&gt;Get Smart About Editing - Configure a Data Collection Form&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:19:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1056740#M20815</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2021-05-11T16:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127751#M21707</link>
      <description>&lt;P&gt;Hi , I created a new field and set the default value to "&lt;STRONG&gt;new"&lt;/STRONG&gt;, with that being said whenever I use the smart editor widget for some reason it will not populate this field with "&lt;STRONG&gt;new"&amp;nbsp;&lt;/STRONG&gt;while I'm in the app . but it will populate this value in a plain web map just fine. I tried the general settings ,and I couldn't&amp;nbsp; any thing that works , can some one help me with this?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 19:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127751#M21707</guid>
      <dc:creator>VincentRobinson</dc:creator>
      <dc:date>2021-12-20T19:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127767#M21708</link>
      <description>&lt;P&gt;Hi Vincent,&lt;/P&gt;&lt;P&gt;Perhaps try using a Preset from the Attribute Action tab in the Smart Editor widget setting?&lt;/P&gt;&lt;P&gt;You can set the value "new" for that field and it will be filled out automatically with that value when you create a new feature.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 20:15:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127767#M21708</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2021-12-20T20:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127773#M21709</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VincentRobinson_0-1640032104344.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30084iC8A66003BB9FFE94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VincentRobinson_0-1640032104344.png" alt="VincentRobinson_0-1640032104344.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks for the quick reply, I did try this but it didn't work, or maybe I've misunderstood how it works.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 20:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127773#M21709</guid>
      <dc:creator>VincentRobinson</dc:creator>
      <dc:date>2021-12-20T20:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127784#M21710</link>
      <description>&lt;P&gt;Is this in ArcGIS Online? Are you able to share your web application so I can take a look? You can share it with me through a group, my username is AlixSolutions.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:02:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127784#M21710</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2021-12-20T21:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127793#M21711</link>
      <description>&lt;P&gt;its on our portal.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127793#M21711</guid>
      <dc:creator>VincentRobinson</dc:creator>
      <dc:date>2021-12-20T21:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127797#M21712</link>
      <description>&lt;P&gt;Are you using Web AppBuilder from your Portal edition, which version are you on? Or are you using a version of Web AppBuilder developer edition?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127797#M21712</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2021-12-20T21:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127798#M21713</link>
      <description>&lt;P&gt;Web AppBuilder Portal edition.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:41:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127798#M21713</guid>
      <dc:creator>VincentRobinson</dc:creator>
      <dc:date>2021-12-20T21:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127832#M21714</link>
      <description>&lt;P&gt;Vincent,&lt;/P&gt;&lt;P&gt;I assume you may've added the new field and its default value through ArcGIS Pro? I think what's happening is that the feature template attribute is missing in your service's JSON and so the values are not coming through, and same issue with the presets.&amp;nbsp;This is a known bug right now.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A workaround for this is to&amp;nbsp;update the feature's edit templates in the web map - which should add the template back into the JSON and resolve the issues.&lt;/P&gt;&lt;P&gt;For example here is a sample layer where my new field added through Pro is missing in the template attributes (see on the right):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlixVezina_1-1640038162096.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30092iA64A7DAA5419B082/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlixVezina_1-1640038162096.png" alt="AlixVezina_1-1640038162096.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlixVezina_0-1640038132417.png" style="width: 323px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30091iBB50327C3B7ACAE9/image-dimensions/323x191?v=v2" width="323" height="191" role="button" title="AlixVezina_0-1640038132417.png" alt="AlixVezina_0-1640038132417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your web map you will need to manage the feature templates for that layer.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlixVezina_2-1640038306117.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30093i96B77475416735A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlixVezina_2-1640038306117.png" alt="AlixVezina_2-1640038306117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And then just click "SAVE CHANGES" at the bottom (even if you haven't made any changes in the map). The template will be written into the JSON and the value will come through in Smart Editor.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlixVezina_3-1640038398096.png" style="width: 331px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30094iBB742EACFC84BD09/image-dimensions/331x178?v=v2" width="331" height="178" role="button" title="AlixVezina_3-1640038398096.png" alt="AlixVezina_3-1640038398096.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlixVezina_7-1640038677002.png" style="width: 250px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30099i0FE88EE565FC6CB1/image-dimensions/250x157?v=v2" width="250" height="157" role="button" title="AlixVezina_7-1640038677002.png" alt="AlixVezina_7-1640038677002.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 22:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127832#M21714</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2021-12-20T22:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127845#M21716</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 22:30:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1127845#M21716</guid>
      <dc:creator>VincentRobinson</dc:creator>
      <dc:date>2021-12-20T22:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1247739#M22731</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/148663"&gt;@AlixVezina&lt;/a&gt;&amp;nbsp;I am having the same issue using WAB for Portal 10.9.1.&amp;nbsp; I set an 'Attribute Action Preset' so the &lt;STRONG&gt;&lt;EM&gt;status&lt;/EM&gt; &lt;/STRONG&gt;field of a Feature Service should be 'Reported' (which is a domain value). However this fails to populate the field when the Smart Editor dialog opens.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ahargreaves_FW_0-1673550681646.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60305iFE7FDC6283DCD37B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ahargreaves_FW_0-1673550681646.png" alt="ahargreaves_FW_0-1673550681646.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ahargreaves_FW_1-1673550826764.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60306iABF58FE041E4AEB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ahargreaves_FW_1-1673550826764.png" alt="ahargreaves_FW_1-1673550826764.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ahargreaves_FW_2-1673550968784.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60307iF065F9D4BD8AC614/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ahargreaves_FW_2-1673550968784.png" alt="ahargreaves_FW_2-1673550968784.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 19:16:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1247739#M22731</guid>
      <dc:creator>ahargreaves_FW</dc:creator>
      <dc:date>2023-01-12T19:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Editor populate field with default value</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1247774#M22732</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/508233"&gt;@ahargreaves_FW&lt;/a&gt;&amp;nbsp; I believe this may be the same issue we recently fixed in a later version of the Smart Editor widget. First, please try the steps I've &lt;A href="https://community.esri.com/t5/arcgis-web-appbuilder-questions/editor-widget-missing-choice-in-feature-template/m-p/1247309/highlight/true#M22730" target="_self"&gt;provided here&lt;/A&gt;, these should also help with resolving this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 19:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/smart-editor-populate-field-with-default-value/m-p/1247774#M22732</guid>
      <dc:creator>AlixVezina</dc:creator>
      <dc:date>2023-01-12T19:57:56Z</dc:date>
    </item>
  </channel>
</rss>

