<?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 Forms Calculated Expressions not populating in Field Maps in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-calculated-expressions-not-populating/m-p/1213940#M4525</link>
    <description>&lt;P&gt;I have domain values. The "1" is telling it which domain value to pull. If you remove the "1" the result is &lt;STRONG&gt;Null&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 19:29:37 GMT</pubDate>
    <dc:creator>NathanGEOregon</dc:creator>
    <dc:date>2022-09-19T19:29:37Z</dc:date>
    <item>
      <title>Smart Forms Calculated Expressions not populating in Field Maps</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-calculated-expressions-not-populating/m-p/1213605#M4520</link>
      <description>&lt;P&gt;I've created a Smart Form for filling in new fields for existing features in a hosted feature layer. For a couple of the fields, I want the forms to pre-populate an existing domain value.&lt;/P&gt;&lt;P&gt;DomainName($feature, 'UTIL_MAT_CLAS_BAS',1)&lt;/P&gt;&lt;P&gt;The "Test" button populates the correct value of "&lt;SPAN&gt;Field inspection only with no records".&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;And editing a feature in a Web Map populates the correct value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But editing a feature in Field Maps just gives&amp;nbsp; "--" in the field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've even attempted replacing the domain value strictly with the text "&lt;SPAN&gt;Field inspection only with no records" with the same result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is this a Field Maps bug, or is there something else going on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 22:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-calculated-expressions-not-populating/m-p/1213605#M4520</guid>
      <dc:creator>NathanGEOregon</dc:creator>
      <dc:date>2022-09-16T22:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Forms Calculated Expressions not populating in Field Maps</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-calculated-expressions-not-populating/m-p/1213936#M4524</link>
      <description>&lt;P&gt;Do you actually have subtypes?&amp;nbsp;&lt;/P&gt;&lt;P&gt;what happens if you remove the ",1" from the end?&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 19:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-calculated-expressions-not-populating/m-p/1213936#M4524</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-09-19T19:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Forms Calculated Expressions not populating in Field Maps</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-calculated-expressions-not-populating/m-p/1213940#M4525</link>
      <description>&lt;P&gt;I have domain values. The "1" is telling it which domain value to pull. If you remove the "1" the result is &lt;STRONG&gt;Null&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 19:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-calculated-expressions-not-populating/m-p/1213940#M4525</guid>
      <dc:creator>NathanGEOregon</dc:creator>
      <dc:date>2022-09-19T19:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Forms Calculated Expressions not populating in Field Maps</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-calculated-expressions-not-populating/m-p/1213963#M4526</link>
      <description>&lt;P&gt;Documentation says that is for subtypes.&amp;nbsp; If I put:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;DomainName($feature, 'FieldName')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the domain description (not code) that is stored in that field for that feature.&lt;/P&gt;&lt;P&gt;I added a dataset with subtype(s), but can't figure out how to get AGOL to honor them.&amp;nbsp; Even the templates ignore the subtypes settings, so, if you are dealing with them, I'm not going to be of any help.&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 20:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-calculated-expressions-not-populating/m-p/1213963#M4526</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-09-19T20:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Forms Calculated Expressions not populating in Field Maps</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-calculated-expressions-not-populating/m-p/1214204#M4538</link>
      <description>&lt;P&gt;A coworker helped me resolve the issue. As the other person mentioned:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DomainName($feature, 'UTIL_MAT_CLAS_BAS',1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;returns the domain description as text, and the field was set up as short integer coded domain values. Even though the above worked perfectly in a web map, it didn't work in Field Maps.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Even using:&amp;nbsp;&lt;STRONG&gt;DomainCode($feature, 'UTIL_MAT_CLAS_BAS',1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;returned the Domain Code as text. So I had to add one last piece to convert the text to a number:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Number(DomainCode($feature, 'UTIL_MAT_CLAS_BAS',1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The above successfully populated the field in Field Maps, and even displayed the domain description in the form.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 14:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-calculated-expressions-not-populating/m-p/1214204#M4538</guid>
      <dc:creator>NathanGEOregon</dc:creator>
      <dc:date>2022-09-20T14:50:44Z</dc:date>
    </item>
  </channel>
</rss>

