1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

How to sum the values of an element in a repeating group?

Discussion in 'Community' started by mhas, Mar 2, 2013.

  1. mhas

    mhas New Member

    Level: Community
    Hello there,

    I have a form with two groups; A and B.

    Group A is a repeating group and has three elements:
    1. Price per Item
    2. Number of Items
    3. Total Cost

    Group B has one element:
    • Total Budget: This element is a Calc plugin and SHOULD be equal to all of the Total Cost elements values from the Group A (Calculation also SHOULD be done using AJAX to make sure any changes gets reflected in this element in form view; ie: before submitting the form!)

    Problem is that the Total Budget element ONLY gets the value of the first group of the Total Cost element, but not the summation of all the values.

    Appreciate any help with this.

  2. maverickweb

    maverickweb New Member

    Level: Community
    Did you get anywhere with this?

    Noticed no-one has yet offered any pointers on how to do this. Have spent the last 2 hours trying to find a solution but not getting anywhere.

    Does this have to be done with javascript or can it be done within the calc element itself?

  3. railer

    railer Member

    Level: Community
    I could also use an answer to your last question... javascript or calc element?
  4. liquid.ideas

    liquid.ideas New Member

    Level: Community
    Me too I could use an answer :)

Share This Page