<?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 Order of fields in PopupTemplate in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-fields-in-popuptemplate/m-p/1190790#M77880</link>
    <description>&lt;P&gt;We need to build a kind of popup, but completely custom made.&lt;/P&gt;&lt;P&gt;I need specific fields that I get from the feature layer by using the PopupTemple:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;for (var i = 0; i &amp;lt; featurelayer.popupTemplate.fieldInfos.length; i++) {
var fieldname = featurelayer.popupTemplate.fieldInfos[i].fieldName;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Important is the sort order of the fields and for most feature layers the sort order is the same as set in the AGOL portal.&lt;/P&gt;&lt;P&gt;When I use the standard ESRI popup, view.popup, the sort order is for most maps the same, and follows the AGOL portal setting. On some maps I have a different sort order. The sort order in the AGOL portal is the same as the sort order in view.popup, but different in my 'feature layer.popupTemplate.fieldInfos'. I cannot find the reason why it is sometimes different. Any ideas? How can I get the correct AGOL sort order information so I can manage to sort myself instead of following the fieldInfos array natural sort order?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2022 13:08:56 GMT</pubDate>
    <dc:creator>PHerk</dc:creator>
    <dc:date>2022-07-08T13:08:56Z</dc:date>
    <item>
      <title>Order of fields in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-fields-in-popuptemplate/m-p/1190790#M77880</link>
      <description>&lt;P&gt;We need to build a kind of popup, but completely custom made.&lt;/P&gt;&lt;P&gt;I need specific fields that I get from the feature layer by using the PopupTemple:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;for (var i = 0; i &amp;lt; featurelayer.popupTemplate.fieldInfos.length; i++) {
var fieldname = featurelayer.popupTemplate.fieldInfos[i].fieldName;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Important is the sort order of the fields and for most feature layers the sort order is the same as set in the AGOL portal.&lt;/P&gt;&lt;P&gt;When I use the standard ESRI popup, view.popup, the sort order is for most maps the same, and follows the AGOL portal setting. On some maps I have a different sort order. The sort order in the AGOL portal is the same as the sort order in view.popup, but different in my 'feature layer.popupTemplate.fieldInfos'. I cannot find the reason why it is sometimes different. Any ideas? How can I get the correct AGOL sort order information so I can manage to sort myself instead of following the fieldInfos array natural sort order?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 13:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-fields-in-popuptemplate/m-p/1190790#M77880</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2022-07-08T13:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Order of fields in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-fields-in-popuptemplate/m-p/1250739#M80020</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/194136"&gt;@PHerk&lt;/a&gt;&amp;nbsp; Did you ever get any resolution to this?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 12:41:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-fields-in-popuptemplate/m-p/1250739#M80020</guid>
      <dc:creator>DawnMcCall</dc:creator>
      <dc:date>2023-01-24T12:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Order of fields in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-fields-in-popuptemplate/m-p/1250769#M80028</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/100857"&gt;@DawnMcCall&lt;/a&gt;&amp;nbsp;, no. I had more questions about unexpected behaviour, but most of my questions are not answered...&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 13:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-fields-in-popuptemplate/m-p/1250769#M80028</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2023-01-24T13:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Order of fields in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-fields-in-popuptemplate/m-p/1250780#M80029</link>
      <description>&lt;P&gt;We are not seeing inconsistent results, but more of the configuration order not being respected.&amp;nbsp; So, when the order is configured in the popup setting in the map service, and we call a popup, the order is respected, but when we call the attributes outside the popup, the order is alphabetical and not respecting the popup configurations.&amp;nbsp; Have you seen anything like that?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:07:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-fields-in-popuptemplate/m-p/1250780#M80029</guid>
      <dc:creator>DawnMcCall</dc:creator>
      <dc:date>2023-01-24T14:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Order of fields in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-fields-in-popuptemplate/m-p/1250785#M80030</link>
      <description>&lt;P&gt;That is the problem I have too. I do not see any ordering data/information, so there I don't know how to solve this.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:11:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-fields-in-popuptemplate/m-p/1250785#M80030</guid>
      <dc:creator>PHerk</dc:creator>
      <dc:date>2023-01-24T14:11:57Z</dc:date>
    </item>
  </channel>
</rss>

