Let's consider our example.
We add a single-choice field with two options for standard packaging and gift wrapping, and for each of them, we want to add an additional price to the total order price. So we write it like this:
Standard Packaging- 5€
Premium Gift Wrapping- 15€
You can also add other types of fields such as multi-choice or dropdown fields.
Add logic for calculating the total price
On the top of your page, click on the “Logic” tab, and from the left menu, select “Advanced logic“.
In our example, after the packaging options question, add the condition:
If the answer is option 1, then +Add 5 to the price,
And another condition:
If the answer is option 2, then +Add 15 to the price
Now by choosing each of these fields, the packaging price will be added to the total price on your form.
How to use answer piping to show the total price at the end of your form
If you want to show the total price(product field price + additional price) at the end of your form or in the success message, follow these steps:
Add a variable field with a formula
You should add a variable and a calculation formula for the product fields and additional prices;
In our example, the formula is:
Add a section field to pipe the calculation of "total price"
To display the total price at the end of your form or in your success pages, you should use the variable ID for answer piping like this: