<?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 Trying to Use a Calculated expression to display Domain description in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/trying-to-use-a-calculated-expression-to-display/m-p/1336760#M7178</link>
    <description>&lt;P&gt;I am trying to create a calculated expression that will return a numeric value from one field in the feature class with a description from a coded value domain in another field in the same feature class. The goal is to concatenate the two fields to give a unit number and description/characterization that can be used for map labels. I think that I need to use the "DomainName" function, but I have not been able to make it work. The numeric field is called "Unit_Number" and the field with the coded value domain is called "Stream_Habitat". I am able to return the numeric value along with the coded value, but I want to return the description, not the coded value. I think if I was able to see examples of the DomainName function, I could figure it out, but the help post on ESRI has syntax only.&lt;/P&gt;&lt;P&gt;Here is my functioning code block that returns numeric value and coded value:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN&gt;([&lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Unit_Number&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Stream_Habitat&lt;/SPAN&gt;&lt;SPAN&gt;], &lt;/SPAN&gt;&lt;SPAN&gt;' '&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 10 Oct 2023 21:28:50 GMT</pubDate>
    <dc:creator>tvelez</dc:creator>
    <dc:date>2023-10-10T21:28:50Z</dc:date>
    <item>
      <title>Trying to Use a Calculated expression to display Domain description</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/trying-to-use-a-calculated-expression-to-display/m-p/1336760#M7178</link>
      <description>&lt;P&gt;I am trying to create a calculated expression that will return a numeric value from one field in the feature class with a description from a coded value domain in another field in the same feature class. The goal is to concatenate the two fields to give a unit number and description/characterization that can be used for map labels. I think that I need to use the "DomainName" function, but I have not been able to make it work. The numeric field is called "Unit_Number" and the field with the coded value domain is called "Stream_Habitat". I am able to return the numeric value along with the coded value, but I want to return the description, not the coded value. I think if I was able to see examples of the DomainName function, I could figure it out, but the help post on ESRI has syntax only.&lt;/P&gt;&lt;P&gt;Here is my functioning code block that returns numeric value and coded value:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN&gt;([&lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Unit_Number&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Stream_Habitat&lt;/SPAN&gt;&lt;SPAN&gt;], &lt;/SPAN&gt;&lt;SPAN&gt;' '&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Oct 2023 21:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/trying-to-use-a-calculated-expression-to-display/m-p/1336760#M7178</guid>
      <dc:creator>tvelez</dc:creator>
      <dc:date>2023-10-10T21:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Use a Calculated expression to display Domain description</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/trying-to-use-a-calculated-expression-to-display/m-p/1336900#M7180</link>
      <description>&lt;P&gt;This is how you return the descriptive name&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Concatenate([text($feature.Unit_Number), DomainName($feature, 'Stream_Habitat')], ' ')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 13:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/trying-to-use-a-calculated-expression-to-display/m-p/1336900#M7180</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-10-11T13:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Use a Calculated expression to display Domain description</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/trying-to-use-a-calculated-expression-to-display/m-p/1692358#M12516</link>
      <description>&lt;P&gt;Thank you - this example is VERY helpful!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 20:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/trying-to-use-a-calculated-expression-to-display/m-p/1692358#M12516</guid>
      <dc:creator>JohannaKraus2</dc:creator>
      <dc:date>2026-03-24T20:27:48Z</dc:date>
    </item>
  </channel>
</rss>

