Skip Navigation

[Resolved] Repeater Sum

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#922104
Screen Shot 2018-07-07 at 5.17.49 PM.png

I am trying to use the text field with repeater and then have them show in a table (I can do that part) But I want the values from the repeater field to sum up into a cell by itself. How could I go about doing that?

#922241

Hi, calculations like this are tricky in a View for several reasons. It may be possible with some custom code, like you can find in this example in another ticket: https://toolset.com/forums/topic/count-of-custom-field-if-it-has-an-entry/

That example only works in very simple applications, and can quickly become unmanageable with multiple columns and multiple totals, or split across multiple pages of results, or updated with AJAX. If you add conditional HTML into the mix, the problem becomes more difficult to resolve. In those situations, more complex custom code is required, which falls outside the scope of support we offer here in the forums.