Sum multiple checkbox items

Hi Everyone i need help. im trying to add product price + additional work price. my product price is 150 but for additional work il be charging 20. im struggling to add 150 plus whatever number of additional work the client chose.

for example, if a client select 2 additional works i need to show how many are selected and the total price. please see screenshot.

Hi there, @shisaware… one way you can do what you described is to use a custom state (number). When a checkbox is checked, use a workflow to increase a custom state’s value by 1 (you will also need a workflow to decrease the value by 1 when a checkbox is unchecked). Then, display the custom state’s value for the number of additional work, and display the custom state’s value * 20 + 150 as the total price.

Hope this helps.

Best…
Mike

Hi @mikeloc thank you for your response, do i use a text element or input to display a custom state value?

You can use a text element.

This topic was automatically closed after 70 days. New replies are no longer allowed.