<?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: Arcade return in pop-up does not honor formatting even if the test dictionary does in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-return-in-pop-up-does-not-honor-formatting/m-p/1630706#M1591</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/915667"&gt;@AllieAnn3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a browser issue so I apologize if your docx covers this, the fields you're wanting to add the special formatting to, are they string fields? It appears they may be integers or another data value that won't take the special character values you've listed, the address takes them fine and the dictionary I believe treats all as if they are strings.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jul 2025 15:46:38 GMT</pubDate>
    <dc:creator>CodyPatterson</dc:creator>
    <dc:date>2025-07-07T15:46:38Z</dc:date>
    <item>
      <title>Arcade return in pop-up does not honor formatting even if the test dictionary does</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-return-in-pop-up-does-not-honor-formatting/m-p/1630703#M1590</link>
      <description>&lt;P&gt;Hi! I feel like I'm missing something simple but the goal is to parse out null values in the pop-up (only show the field when it is populated), and I got that to work. However, I have some formatting I want to apply to the returned value (thousands seperator, adding a $ or %) that shows up in the Dictionary when I test run the code, but does not show up in the pop-up. I'm sure there's a simpler way to write this out too... Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2025-07-07 113520.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135987i14086A5FC7AFDCAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-07-07 113520.png" alt="Screenshot 2025-07-07 113520.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2025-07-07 113712.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135986i97F19497903168CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-07-07 113712.png" alt="Screenshot 2025-07-07 113712.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 15:39:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-return-in-pop-up-does-not-honor-formatting/m-p/1630703#M1590</guid>
      <dc:creator>AllieAnn3</dc:creator>
      <dc:date>2025-07-07T15:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade return in pop-up does not honor formatting even if the test dictionary does</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-return-in-pop-up-does-not-honor-formatting/m-p/1630706#M1591</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/915667"&gt;@AllieAnn3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a browser issue so I apologize if your docx covers this, the fields you're wanting to add the special formatting to, are they string fields? It appears they may be integers or another data value that won't take the special character values you've listed, the address takes them fine and the dictionary I believe treats all as if they are strings.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 15:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-return-in-pop-up-does-not-honor-formatting/m-p/1630706#M1591</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-07-07T15:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade return in pop-up does not honor formatting even if the test dictionary does</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-return-in-pop-up-does-not-honor-formatting/m-p/1630744#M1592</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are integers - I don't have any formatting on the Address which is the only string. When I use the text() function in an arcade expression, it honors the formatting even with the integers. Is it different when it's in an arcade element? Do you suggest I format them into strings first?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 16:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-return-in-pop-up-does-not-honor-formatting/m-p/1630744#M1592</guid>
      <dc:creator>AllieAnn3</dc:creator>
      <dc:date>2025-07-07T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade return in pop-up does not honor formatting even if the test dictionary does</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-return-in-pop-up-does-not-honor-formatting/m-p/1630766#M1593</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/915667"&gt;@AllieAnn3&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;One thing I would suggest trying is the following.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var FieldMap = {Address:'Address','&amp;lt;IncomeField&amp;gt;':'Ave Household Income','etc...':'etc...'}
var Values = []
Expects( $feature, '*')
for( var f in $feature ){
	var N = $feature[f]
	if( HasKey( FieldMap, f ) &amp;amp;&amp;amp; !IsEmpty( N ){
		if( F == ''){ N = Text( N, '##.##%' )}
		//else if.....
		Push( Values, Dictionary( FieldMap[f] , N ) )
		}
	}
return Concatenate( Values, '\n' )

/*
Note: Any value in text that you want to represent as a placeholder for a number
can use '#' to indicate the position or how many digits of the number to represent.
Whole numbers use '0' as representation. You can add any other characters to the front
or back to show percentages or any other value.
*/&lt;/LI-CODE&gt;&lt;P&gt;I use code similar to this for more complex popups just to keep things simple. The 'Expects' may not work so you can optionally create a dictionary of matching fields and values to mimic something akin to this.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 17:27:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-return-in-pop-up-does-not-honor-formatting/m-p/1630766#M1593</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2025-07-07T17:27:46Z</dc:date>
    </item>
  </channel>
</rss>

