Select to view content in your preferred language

Remove Thousands Separator in Labels

583
2
12-20-2023 08:39 AM
hherrmann_coj
Regular Contributor

I am trying to work in our Portal version of Map Viewer and while I've managed to dig through the tools to find where I can deselect the 1000s separator in the "configure fields" tool, the labels still show the separator whereas the pop up does not.  I don't want a thousands separator on either one since it's a manhole number and not commonly shown with a separator.

I checked in the configure pop up tool to see if there was a place there that I could change it there, but haven't had any luck.  Does anyone know another way I can accomplish this? 

I have included a screenshot showing a pop up for the layer I'm working on, the selected feature, and the pop up configuration.  I've also included a screenshot of the configure fields & where there thousands separator option is located in Map Viewer.


hherrmann_coj_0-1703090081396.png

Configure Fields tool

hherrmann_coj_1-1703090125227.png

Thousands separator option:

hherrmann_coj_2-1703090166417.png

Thank you for any feedback you can provide.

0 Kudos
2 Replies
MaraKaminowitz
Frequent Contributor

I think you need to use an Arcade expression in the label settings separate from the field formatting for pop-ups.  I am not sure of the exact formatting expression though.

MaraKaminowitz_0-1703623324681.png

 

0 Kudos
KKelechenyi
Occasional Contributor

Maybe try this?

var numberString = Text($feature.manhole_number, "#");
var formattedNumber = Replace(numberString, ",", "");
return formattedNumber;

0 Kudos