<?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: PopupTemplate Title thousands separator in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-title-thousands-separator/m-p/1226441#M79155</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/327152"&gt;@MatthewDriscoll&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This can be done by setting the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html#digitSeparator" target="_self"&gt;digitSeparator&lt;/A&gt; value of the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html" target="_self"&gt;FieldInfoFormat&lt;/A&gt; on the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#fieldInfos" target="_self"&gt;fieldInfos&lt;/A&gt; at the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html" target="_self"&gt;PopupTemplate&lt;/A&gt; level to true for the particular field you are displaying in the title. Here's an example showing how to do this:&amp;nbsp;&lt;A href="https://codepen.io/laurenb14/pen/MWXwKem?editors=1000" target="_blank"&gt;https://codepen.io/laurenb14/pen/MWXwKem?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const popupTemplate = {
    title: "2010 Population: {POP2010}",
    outFields: ["*"],
    content: "Test Content",
    fieldInfos: [{
        fieldName: "POP2010",
        format: {
            digitSeparator: true,
            places: 0
        }
    }]
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 22:18:14 GMT</pubDate>
    <dc:creator>LaurenBoyd</dc:creator>
    <dc:date>2022-10-27T22:18:14Z</dc:date>
    <item>
      <title>PopupTemplate Title thousands separator</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-title-thousands-separator/m-p/1226406#M79151</link>
      <description>&lt;P&gt;Is is possible to add the thousands separators in the title section of the popup template?&amp;nbsp; So 1000 shows as 1,000.&amp;nbsp; &amp;nbsp;I know you can format in the content using digitSeparator, but I cannot figure out how to do it in the title section.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 20:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-title-thousands-separator/m-p/1226406#M79151</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2022-10-27T20:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate Title thousands separator</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-title-thousands-separator/m-p/1226441#M79155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/327152"&gt;@MatthewDriscoll&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This can be done by setting the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html#digitSeparator" target="_self"&gt;digitSeparator&lt;/A&gt; value of the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html" target="_self"&gt;FieldInfoFormat&lt;/A&gt; on the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#fieldInfos" target="_self"&gt;fieldInfos&lt;/A&gt; at the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html" target="_self"&gt;PopupTemplate&lt;/A&gt; level to true for the particular field you are displaying in the title. Here's an example showing how to do this:&amp;nbsp;&lt;A href="https://codepen.io/laurenb14/pen/MWXwKem?editors=1000" target="_blank"&gt;https://codepen.io/laurenb14/pen/MWXwKem?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const popupTemplate = {
    title: "2010 Population: {POP2010}",
    outFields: ["*"],
    content: "Test Content",
    fieldInfos: [{
        fieldName: "POP2010",
        format: {
            digitSeparator: true,
            places: 0
        }
    }]
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 22:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-title-thousands-separator/m-p/1226441#M79155</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2022-10-27T22:18:14Z</dc:date>
    </item>
  </channel>
</rss>

