<?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: Pop ups AGOL using the label for domains in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/pop-ups-agol-using-the-label-for-domains/m-p/1390580#M57847</link>
    <description>&lt;P&gt;You can use Arcade and &lt;A href="https://developers.arcgis.com/arcade/function-reference/feature_functions/#domainname" target="_self"&gt;DomainName &lt;/A&gt;&amp;nbsp;to get the Label or Description for the domain.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mark&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 17:53:22 GMT</pubDate>
    <dc:creator>MarkBockenhauer</dc:creator>
    <dc:date>2024-03-04T17:53:22Z</dc:date>
    <item>
      <title>Pop ups AGOL using the label for domains</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pop-ups-agol-using-the-label-for-domains/m-p/1390524#M57843</link>
      <description>&lt;P&gt;I am trying to set up pop ups of environmental data which uses the label in the domain rather than the code value. At the moment I have been setting up the pop ups using else if statements.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;/P&gt;&lt;PRE&gt;var Type = $feature.lifestage;&lt;BR /&gt;if&amp;nbsp; (Type == 'A') {Type = 'adult';}&lt;BR /&gt;else if (Type == 'Lva') {Type = 'larvae';}&lt;BR /&gt;else if (Type == 'E') {Type = 'egg';}&lt;BR /&gt;return Type;&lt;/PRE&gt;&lt;P&gt;However I need to do the same thing for species data using a domain of plant lists which is several thousand rows long so can't use the same code as above. I'm sure there must be a simple solution that I am hoping someone can share with me. Example subset of domain is below.&amp;nbsp;&lt;/P&gt;&lt;TABLE width="673"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="131"&gt;CODE&lt;/TD&gt;&lt;TD width="542"&gt;DESC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NBNSYS0200001285&lt;/TD&gt;&lt;TD width="542"&gt;Abelia&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NBNSYS0000139224&lt;/TD&gt;&lt;TD width="542"&gt;Abies (Firs)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NHMSYS0000455513&lt;/TD&gt;&lt;TD width="542"&gt;Abies alba (European Silver-fir)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NBNSYS0000042419&lt;/TD&gt;&lt;TD width="542"&gt;Abies amabilis&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;BMF&lt;/TD&gt;&lt;TD width="542"&gt;Abies bornmuelleriana (Trojan Fir)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NBNSYS0000034340&lt;/TD&gt;&lt;TD width="542"&gt;Abies cephalonica (Greek Fir)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NHMSYS0021109850&lt;/TD&gt;&lt;TD width="542"&gt;Abies fraseri (Fraser Fir)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NHMSYS0000455520&lt;/TD&gt;&lt;TD width="542"&gt;Abies grandis (Giant Fir)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NBNSYS0000034011&lt;/TD&gt;&lt;TD width="542"&gt;Abies nordmanniana (Caucasian Fir)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NBNSYS0000140832&lt;/TD&gt;&lt;TD width="542"&gt;Abies procera (Noble Fir)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NBNSYS0000139234&lt;/TD&gt;&lt;TD width="542"&gt;Abutilon&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NHMSYS0100000348&lt;/TD&gt;&lt;TD width="542"&gt;Abutilon theophrasti (Velvetleaf)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NBNSYS0000139235&lt;/TD&gt;&lt;TD width="542"&gt;Acacia (Australian Blackwood)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NHMSYS0000455529&lt;/TD&gt;&lt;TD width="542"&gt;Acacia melanoxylon (Australian Blackwood)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NBNSYS0000139236&lt;/TD&gt;&lt;TD width="542"&gt;Acaena&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NBNSYS0000003391&lt;/TD&gt;&lt;TD width="542"&gt;Acaena anserinifolia (Bronze Pirri-pirri-bur)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="131"&gt;NBNSYS0000014912&lt;/TD&gt;&lt;TD width="542"&gt;Acaena anserinifolia x inermis (Pirri-Pirri-Bur)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 04 Mar 2024 17:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pop-ups-agol-using-the-label-for-domains/m-p/1390524#M57843</guid>
      <dc:creator>RosieLaura</dc:creator>
      <dc:date>2024-03-04T17:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pop ups AGOL using the label for domains</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pop-ups-agol-using-the-label-for-domains/m-p/1390580#M57847</link>
      <description>&lt;P&gt;You can use Arcade and &lt;A href="https://developers.arcgis.com/arcade/function-reference/feature_functions/#domainname" target="_self"&gt;DomainName &lt;/A&gt;&amp;nbsp;to get the Label or Description for the domain.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mark&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 17:53:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pop-ups-agol-using-the-label-for-domains/m-p/1390580#M57847</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2024-03-04T17:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pop ups AGOL using the label for domains</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pop-ups-agol-using-the-label-for-domains/m-p/1390599#M57848</link>
      <description>&lt;P&gt;Is this actually a domain on the field itself? As &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2733"&gt;@MarkBockenhauer&lt;/a&gt;&amp;nbsp; notes, the DomainName function is exactly what you want.&lt;/P&gt;&lt;P&gt;If the values are maintained in some other table, there might still be a way to do it.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 18:15:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pop-ups-agol-using-the-label-for-domains/m-p/1390599#M57848</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-03-04T18:15:50Z</dc:date>
    </item>
  </channel>
</rss>

