How to calculate a total sum based of several Elements

  • Profile Image
    grimstad.trude
    Asked on March 02, 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

  • Profile Image
    Ahmed_S
    Answered on March 02, 2021 at 05: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.png

    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.gif

    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