Payment Form: How can I have the total amount affected by a number of days?

What is JotForm?

JotForm is a freeonline form builder which helps you create online forms without writing a single line of code.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

Why do you not want to answer this thread?(Your answer will be sent to Jeanette and Aytekin)

ati1991

Asked on November 06, 2017 at 02:34 PM

Is it possible to create a SKI RENTAL with jotform?

It is necessary to choose the dates and book the skis for these dates. The problem with jotform is that i havent figured out how to calculate the days in between dates and adjust the price of the product accordingly for the amount of days booked.

I built my form up to the point of calculating the date differnce (which stopped working) and inserting my products.

How can I now have the price be affected by the amount of days?

https://form.jotformeu.com/72955402182355

Martin

JotForm Support

Kevin_G

Answered on November 06, 2017 at 08:55 PM

I have checked your form and noticed that your calculation is working:

Also, I noticed that you're using the sell products payment type, this type does not allow you to pass custom values to the final amount, you will need to perform the calculations on your form in order to be able to affect the total by the number of days.

You will need to then pass the calculated amount to the payment field as explained by my colleague above.

I hope this helps.

ati1991

Answered on November 07, 2017 at 01:22 PM

Hi,

I got a step further now.

But I have one problem. How can someone add 2 products fo the same type at once?In the multiple choice, I have product 1, and if it is selected, one can only buy one of that at a time...??

ati1991

Answered on November 07, 2017 at 01:26 PM

And so the paypal widgets do not work?

ati1991

Answered on November 07, 2017 at 01:32 PM

Never mind about the payment option, I found out how to use paypal with the user defined sadsadd

ati1991

Answered on November 07, 2017 at 02:03 PM

On top of the multiple items at once problem, I have this problem:

How can I define a discount depending on the days the items are rented?

(preferably, I would also add insurance, which would not have to be discounted, but i could but this in a separate multiple choice form, which won't be discounted)

JotForm Support

Kevin_G

Answered on November 07, 2017 at 02:52 PM

But I have one problem. How can someone add 2 products fo the same type at once?

In the multiple choice, I have product 1, and if it is selected, one can only buy one of that at a time...??

In order to be able to have quantity fields, you will need to separate the current "Produkte auswählen" field that you have on your form. Please add each product in a single field this way if an option is selected you can show the proper quantity field that may be a short text entry field.

Then you will need to add the proper calculations on your widget, example:

(product 1 * quantity 1) + (product 2 * quantity 2)

How can I define a discount depending on the days the items are rented?

(preferably, I would also add insurance, which would not have to be discounted, but i could but this in a separate multiple choice form, which won't be discounted)

You're able to conditionally insert values based on the number of days, this will require to add a new short text entry field to your form where you will insert the value to be discounted, then include such field on the calculation that gets the total.