<?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: Map Viewer Pop-ups Aliases (Arcade) in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319125#M6708</link>
    <description>&lt;P&gt;That code is working properly with a dataset I test it with. What are the results that you're getting? And do you have aliases set up properly for your fields?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fieldsToInclude = ["FIELD_ID",
                "LAT",
                "LONG",
                "DEPTH_M"
                ];
var features = FeatureSetByName($map, 'Test', fieldsToInclude, false);
//the rest of the code was the same&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test_fields.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78223iF0BEFAE580DA9D09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test_fields.png" alt="test_fields.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="test_popup.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78224i2CB7F0D03A9A6FCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test_popup.png" alt="test_popup.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2023 14:19:42 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2023-08-16T14:19:42Z</dc:date>
    <item>
      <title>Map Viewer Pop-ups Aliases (Arcade)</title>
      <link>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319109#M6707</link>
      <description>&lt;P&gt;I am searching for a way to access the "alias" property of fields in Map Viewer pop-ups using Arcade. The following code only returns partial aliases, and looks like it's somehow mixing in field names with their aliases. Any suggestions on how to access the "alias" property in a way that is consistant?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fieldsToInclude = ["tvd_ft_0",
                "well_status_type",
                "Symbology",
                "tvd_ft_bin_count"
                ];
var features = FeatureSetByName($map, 'Well Status-20K Grid', fieldsToInclude, false);
var aDict = Schema(features);
var aArray = aDict["fields"];
var output;

for (var i in $feature){
    if (!IsEmpty($feature[i]) &amp;amp;&amp;amp;
       ($feature[i] != 0)) {
        for(var j in aArray) {
            var dict = aArray[j];
            if (dict['name'] == i){
                output += dict['alias'] + ": " + $feature[i] + TextFormatting.NewLine + TextFormatting.NewLine;
            };
        };
    };
};
return output;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Aug 2023 13:39:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319109#M6707</guid>
      <dc:creator>moremeowbell</dc:creator>
      <dc:date>2023-08-16T13:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Map Viewer Pop-ups Aliases (Arcade)</title>
      <link>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319125#M6708</link>
      <description>&lt;P&gt;That code is working properly with a dataset I test it with. What are the results that you're getting? And do you have aliases set up properly for your fields?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fieldsToInclude = ["FIELD_ID",
                "LAT",
                "LONG",
                "DEPTH_M"
                ];
var features = FeatureSetByName($map, 'Test', fieldsToInclude, false);
//the rest of the code was the same&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test_fields.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78223iF0BEFAE580DA9D09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test_fields.png" alt="test_fields.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="test_popup.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78224i2CB7F0D03A9A6FCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test_popup.png" alt="test_popup.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 14:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319125#M6708</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-08-16T14:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Map Viewer Pop-ups Aliases (Arcade)</title>
      <link>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319162#M6709</link>
      <description>&lt;P&gt;Did you use the code block in my post or did you alter it at all?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 15:44:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319162#M6709</guid>
      <dc:creator>moremeowbell</dc:creator>
      <dc:date>2023-08-16T15:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Map Viewer Pop-ups Aliases (Arcade)</title>
      <link>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319164#M6710</link>
      <description>&lt;P&gt;The only thing I changed was the fieldsToInclude variable and the map name. Everything else was the same.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 15:45:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319164#M6710</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-08-16T15:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Map Viewer Pop-ups Aliases (Arcade)</title>
      <link>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319180#M6711</link>
      <description>&lt;P&gt;Okay awesome. Also, did the values returned for each field look right?&lt;/P&gt;&lt;P&gt;I’ll build a test layer from scratch to test. I didn’t build the layer that is being tested, so maybe something weird is going on with it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 16:02:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319180#M6711</guid>
      <dc:creator>moremeowbell</dc:creator>
      <dc:date>2023-08-16T16:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Map Viewer Pop-ups Aliases (Arcade)</title>
      <link>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319305#M6713</link>
      <description>&lt;P&gt;Yup, you called it! Aliases were not as expected, so it was a data issue. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 19:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/map-viewer-pop-ups-aliases-arcade/m-p/1319305#M6713</guid>
      <dc:creator>moremeowbell</dc:creator>
      <dc:date>2023-08-16T19:27:01Z</dc:date>
    </item>
  </channel>
</rss>

