Pop-up Title Number Format

803
6
Jump to solution
09-26-2023 05:03 PM
Labels (2)
sgambrel_Bouldercounty
Occasional Contributor

How do I change the format of a numeric value in a Pop-up Title?  I would like to get rid of the comma separators and decimal places. 

sgambrel_Bouldercounty_0-1695772758330.png

I tried a custom Arcade expression (when I test it, the results are correct), but it is not reflected in the title.
sgambrel_Bouldercounty_1-1695772857548.png

 

Here's how I have the custom expression input in the Pop-up Title bar:

sgambrel_Bouldercounty_2-1695772922077.png

 

 

0 Kudos
1 Solution

Accepted Solutions
sgambrel_Bouldercounty
Occasional Contributor

Actually, figured it out myself - converted it to text using this expression:

Text($feature["Unique_Crash_ID"],'########')


View solution in original post

6 Replies
sgambrel_Bouldercounty
Occasional Contributor

Actually, figured it out myself - converted it to text using this expression:

Text($feature["Unique_Crash_ID"],'########')


TampaPortDR
New Contributor II

Thanks for posting follow up! 

-Damian 

KenBuja
MVP Esteemed Contributor

Another way to do this In Map Viewer Classic is to format the field in the Configure Popup dialog. Click on the "Configure Attributes" link, select the field, use the dropdown to set the decimal places to 0,

format.png

and unclick the "Use 1000 Separator" checkbox.

0 Kudos
sgambrel_Bouldercounty
Occasional Contributor

That works for the individual values / fields in the popup, but not if you want to use a field in the popup title.  Or at least it didn't for me.

0 Kudos
KenBuja
MVP Esteemed Contributor

Here's an example showing that it does work. This is using the field ANNUALTAX. This shows the popup with two decimal places and a 1000s separator.

popup1.png

popup2.png

Then I changed the decimal places to 0 and turned off the separator.

popup3.png

popup4.png

sgambrel_Bouldercounty
Occasional Contributor

Interesting.  I had initially tried that (much easier than building the expression) but for some reason that did not work with my data, at that point at least.  Haven't re-tested, but it seems like your solution works as well.   Thanks! 

0 Kudos