WordPress.org

Ready to get started?Download WordPress

Forums

Jazzy Forms
Simple calculation (7 posts)

  1. Marja Beckers
    Member
    Posted 1 year ago #

    I need a form with a few checkboxes. Each containing an option with the value 0 when unchecked and a price value when clicked.

    Underneath that I need a field that adds the value of all these fields.
    I have tried a few things but I can´t work it out.

    any help?

    http://wordpress.org/extend/plugins/jazzy-forms/

  2. dvdbacco
    Member
    Posted 1 year ago #

    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): http://www.condifesa.ra.it/calcola-il-preventivo/

  3. Marja Beckers
    Member
    Posted 1 year ago #

    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:
    http://www.marbiedesign.nl/dev/

  4. Marja Beckers
    Member
    Posted 1 year ago #

    This is how I configured it: my form

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

  5. dvdbacco
    Member
    Posted 1 year ago #

    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]

  6. Marja Beckers
    Member
    Posted 1 year ago #

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

    Thanks again for your help!

  7. dvdbacco
    Member
    Posted 1 year ago #

    “ALL'S WELL THAT ENDS WELL”

    You're welcome...

    David
    [sig moderated as per the Forum Rules]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic