Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    well, if I’ve understood, I think there is no problem doing what you ask, simply:
    Create a new form, call it as you want.

    Add one CHECKBOX, selecting it and drag and drop on right menu, title it, ID it with A
    “value for checked” = 10
    “value for unchecked” = 0

    Add another one CHECKBOX, title it, ID it with B
    “value for checked” = 20
    “value for unchecked” = 0

    Add another one CHECKBOX, title it, ID it with C
    “value for checked” = 30
    “value for unchecked” = 0

    Add a OUTPUT, title it, ID it with SUM
    “formula” = A+B+C
    “unit before number” = € or $
    “leading zero” = 0
    “decimals” = 2

    Go to Generals copy and paste on your article or page the Jazzy code.

    Done?

    Greetings
    David

    My Jazzy Form under the name of the fruits (in Italian sorry): https://www.condifesa.ra.it/calcola-il-preventivo/

    Thread Starter Marja Beckers

    (@marbie)

    I must be doing something wrong, cause all I get in the output field is “invalid formula”.
    I have checked “Update output elements instantly” under general.

    The ID of my output field is SUM
    and the formula is =A+B+C

    The checkbox fields are also as you mentioned.

    you can see it here:
    https://www.marbiedesign.nl/dev/

    Thread Starter Marja Beckers

    (@marbie)

    This is how I configured it: my form

    The fields B and C are configures as A part from the “value when checked”.

    Hello!

    Solution is simple!
    Just remove the “=” on formula field… “A+B+C” is enough.

    Try it and let me know…

    Greatings
    David

    [sig moderated as per the Forum Rules]

    Thread Starter Marja Beckers

    (@marbie)

    Thanks!
    It turned out to be something in the theme (headway) as well.
    It works fine in twentytwelve.

    Thanks again for your help!

    “ALL’S WELL THAT ENDS WELL”

    You’re welcome…

    David
    [sig moderated as per the Forum Rules]

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Simple calculation’ is closed to new replies.