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
Solved! Go to Solution.
Actually, figured it out myself - converted it to text using this expression:
Text($feature["Unique_Crash_ID"],'########')
Actually, figured it out myself - converted it to text using this expression:
Text($feature["Unique_Crash_ID"],'########')
Thanks for posting follow up!
-Damian
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.
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.
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
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!
Is there any way to do this same thing in Map Viewer?