• Resolved lifa124

    (@lifa124)


    For my needs, the price of each checkbox, radio button depends on the quantity that the user chooses in the input range (order quantity). Example 10 units will cost 5 euros per unit and each supplement will cost 5 euros, while with 100 units the cost per unit is 1 euro and each supplement costs 1 euro.

    maybe I could do the same in the total element even if it seems complex to manage everything with only ifs.
    I have not found how to add the logic of an element with multiple checkboxes/radiobuttons. For example i have a checkbox element with 3 boxes, and every one of this change the price..

Viewing 5 replies - 1 through 5 (of 5 total)
  • supportstylemix

    (@supportstylemix)

    Hello,
    Thanks for reaching us here!
    Yes, managing with the if/else statement inside the total element for several elements. It depends on your end result you want to achieve. You can try it with the conditional system feature of the Pro version.
    Please check the demo site for knowing more about what calculators you can build through the Cost Calculator Builder.

    Best Regards

    Thread Starter lifa124

    (@lifa124)

    I want a calculated field to perform an operation ONLY if a specific checkbox is checked.

    Setup:
    Fieldname: checkbox_field_id_0 with 3 items (“First”, “Second”, “Third”)

    how can i do with if else?

    supportstylemix

    (@supportstylemix)

    Hello,
    Thanks for reaching us here!
    You will create the if/else statement with option values of the checkbox not the name of the option. For example, the option “First” = 10, the option “Second” = 20, the option “Third”=30, so your if can be:
    if(checkbox_field_id_0 == 10){do this calculation}else if(checkbox_field_id_0 == 20){do this calculation}else{do this calculation}
    You can also do it using the conditional system with set value action. You will put a condition for checkbox and choose the set value action for the resulted element.
    If it does not help, please share your calculator as a screenshot and explain the end result so I could guide you what to do.

    Best Regards

    Thread Starter lifa124

    (@lifa124)

    So if I have 5 checkbox (not radio button) the tool will make the sum out of it.. (1°checkbox) 10 + (2° checkbox) 20 = 30 as my 3° checkbox have value 30 this is not work clean and well for me. I need to make differentiation between checkbox and a clean way to manage several box together (like 8)

    Hello,
    Thanks for reaching us here!
    No it will not sum the option values, it will follow your formula. Please watch the tutorial videos on Youtube about the custom conditions in the total field and conditional system.

    Best Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Price Scale Reduction as Quantities Increase’ is closed to new replies.