Hey everyone,
I’m working from a cloneable of a form calculator and need a little help with one piece of it. This is the last thing I need to figure out before knowing if I can use this approach or not on a real project.
Essentially, I manipulated the custom JS code in this project to calculate and display a few different numbers at the bottom of the screen. The issue is that the price (which is in millions) has no formatting with commas (it just looks like 4555000 instead of 4,555,000). I’ve explored a few different additional JS solutions to format this number once calculated, but it never seems to work right and clashes with the existing JS that generates the number in the first place. This is one of the options I tried to implement: Support for currency, commas, numeral formatting - #4 by PixelGeek
So, I’m wondering if anyone is able to help me make sense of what I need to do to get the price numbers formatted with commas every time the number is re-generated? Thank you for the help.
(Just for reference, only the first row of blocks with the title “Power” are set up currently to calculate numbers correctly).
Here is my site Read-Only: Webflow - Michael's Spectacular Site
Live site: https://michaels-spectacular-site-3ac072.webflow.io/