How do I put a counter in text box?

a counter in a text that add an amount of something (for my activity it’s energy saving or Tons of CO2). From a date (for example: 01/01/2012) to the date the visitors are on the website, it adds these amounts. For some of my previous customers, I want these quantities appear. And the total amount on the first page.

Hi Jerry,

Is you data stored in a collection as numbers?
If so, you can filter the collection according to date, then write some code that will combine the amounts of each items and display them.

Check out wixDataQuery.between, it allows you to provide a range of dates. (rangeStart, rangeEnd)

Feel free to search the forum for similar threads. Similar questions were asked in the past.

Thank You. That’s very helpful