How to calculate a total sum based of several Elements

  • grimstad.trude
    Asked on March 2, 2021 at 12:34 PM

    Hi,

    I was wondering if it's possible to add a total sum at the end of the form showing a total sum based on what you selected in several form elements. Is it also possible to do this without selecting quantity, or to set the quantity on x1 for all services?

    Many thanks,

    Trude

  • Ahmed_S
    Replied on March 2, 2021 at 5:28 PM

    Hello Trude,

    I've cloned your form to check it and found you've already added a Calculation widget, and also enabled the Use Calculation Values for the fields that needs to be calculated but you missed 2 fields "Størrelse på båt" & "Tjenester", you may assign a calculation values for the options of these 2 fields.

    1614723413 603eb9553909d 1 Screenshot 10

    The second issue is with the Calculation widget, you didn't use the plus sign "+" to sum the selected fields values, and I noticed that there is a field that is duplicated (added twice to the calculation), please check the below screen cast.

    1614723762 603ebab21eb26 screen Screenshot 21

    If you fix these issues your calculation will work flawlessly, please give it a try and let us know if you need further assistance, we will be happy to help.

    Related guides:

    How to Perform Form Calculation Using a Widget

    How to Assign Calculation Value