Forums

multiply price and amount

Jecrvali 02 Dec, 2013
Hello,

I would like to use Chronoforms for a form like this:

product amount price subtotal
product1 ___ 3,75 amount*price
product2 ___ 6,50 amount*price
etc.
total (sum of all subtotals)

One can fill in the amount of products one wants to order. Then it should calculate the subtotal per product and in the end the total of all products together.
The customer should see the total amount before he submits.

Is this possible? I tried to search for scripts, but I cannot find any.

Thank you,
Jeannette
GreyHead 02 Dec, 2013
Hi Jeanette,

You can do this using JavaScript in a Load JS action in your form. It is hard to give a code example as the specifics of each form are usually a bit different. You will find some similar examples in the forums here if you hunt around e.g here.

Bob
This topic is locked and no more replies can be posted.