Streaming live at 10am (PST)

Dynamically calculate CMS field

Hi this is a strange one.

I want the total calculation of every number in the “signals” field in this in a collection to dynamically display on the site…

Is there a smart way of getting this without going through the API or even with,
I have no idea where to start…

e.g Septmber 40 … + August 30 … + June 20 = Total: 80 (on homepage)

Any direction would be appreciated.


Here is my public share link: LINK
(how to access public share link)

@PixelGeek @dram Any idea?

The only way I can think of is with custom code. Hopefully I’m wrong and someone can correct me.

Anyway, you would need to create a hidden CMS collection on the page, and connect each of the CMS items to a text element. Your script would then need to loop over all these text items, read the numbers and sum them, then alter the value of the total text.