Skip to main content
All CollectionsBuild & customizeForm logic & calculations
How to calculate the additional price in your order form
How to calculate the additional price in your order form

Calculate additional prices in order forms. Set logic for packaging options and use answer piping to display the total price.

Updated over 2 months ago

Let's consider our example Online order form.

In this template, we have product fields to select and it will automatically adds the price to the payment gateway.

For an additional price, we can add a single-choice field with two options for standard packaging and gift wrapping, and for each of them. 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.

additional price

Add logic for calculating the total price

On the top of your page, click on the “Logic” tab, and from the right side 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

logic and calculation

Now by choosing each of these fields, the packaging price will be added to the total price on your form.

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 content 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:

{{price}} OR @price

Now, the submitters can see the total calculation of their order at the end of the process.

🧩 Template:

Did this answer your question?