• Resolved andrewtlong

    (@andrewtlong)


    Hello! I have really enjoyed using your plugin so far. However, I am having some trouble integrating the checkboxes in a specific way. Say I have an order form, and I want to give the user two shipping options (standard and expedited). If the user checks “standard”, no additional fee is charged, but if the user selects “expedited”, I’d like to add 25% of the base cost onto the total sum. How can this be achieved? I have played around with several different configurations and have not been able to make this work.

    This could also be done using a dropdown box, as I am not too picky on how the selection is actually made. Thank you for any help you can provide!

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

    (@codepeople)

    Hello @andrewtlong

    The process is really simple.

    I recommend using radio buttons instead of checkboxes because the radio buttons allow selecting only one choice at once, and the checkboxes allow selecting multiple choices. The shipping cannot be standard and expedited at the same time.

    So, assuming you have the equation SUM(fieldname1,fieldname2) and the radio buttons field (fieldname3) includes two choices, standard and expedited.

    The choices are composed of a text and a value. The values are always used in the equations.

    Please, define the radio buttons choices as follows:

    The first choice with the “Standard” text and the number 1 as its value.
    The second choice with the “Expedited” text and 1.25 as its value.

    Now, you only need to edit the equation as:

    SUM(fieldname1,fieldname2)*fieldname3

    And that’s all.

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Conditional Logic and Checkboxes’ is closed to new replies.