• Resolved jleaman

    (@jleaman)


    Hi Guys,

    So I am building a simple online quoting tool… people have to input the following information

    Group size- radio buttons (4 choices) – with dependancies each to a different menu

    Menu size- i’ve created 4 different menus (identical but with different pricing depending on group size above – with dependencies to a checkbox of additional options to add to their order

    From there I want to calculate the price per person. How do I go about doing that?

    So the calculate button has to take into account their selection of group size, menu and additional options – although the menu and pricing as well as the checkbox and associated prices depend on their selections all the way though…

    Hope that makes sense…

    https://www.ads-software.com/plugins/calculated-fields-form/

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    You simply should know that the values of the dependent fields is zero if they are dependent fields and are not enabled.

    For example, if the form includes the radio buttons field (fieldname1) with three choices, and other six fields:

    – fieldname2 and fieldname3, depending to the first choice.
    – fieldname4, and fieldname5, depending to the second choice.
    – fieldname6, and fieldname7, depending to the third choice.

    and finally a calculated field whose equation would be:

    fieldname2*fieldname3 if the first choice in fieldname1 is selected.
    fieldname4*fieldname5 if was selected the second choice.
    and fieldname6*fieldname7 if was selected the third choice.

    So, the equation would be as simple as:

    fieldname2*fieldname3+fieldname4*fieldname5+fieldname6*fieldname7

    because if the first choice is selected in the fieldname1 field, the values of the fields: fieldname4, fieldname5, fieldname6, and fieldname7 is zero.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘How to Calculate when using dependencies’ is closed to new replies.