What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

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.

  • Profile Image

    How can I use conditional logic with shipping fees?

    Asked by HAPEN on May 03, 2015 at 07:08 PM

    Is it possible to use conditional logic to add shipping fees if an order is placed after a deadline?


    For example, I am offering free shipping if a customer orders a product before a stated deadline. 

    When using the PalPal payment gateway, I want to add shipping fees if the deadline has passed.

    I have not created the form yet, I am only inquiring at this time.




  • Profile Image
    JotForm Support

    Answered by ashwin_d on May 04, 2015 at 01:19 AM

    Hello HAPEN,

    Yes it is possible to achieve your requirement but you will not be able to manage this condition within the payment question. You will have to add normal form fields i.e. textboxes, checkbox, radio button and then pass the calculation amount to the PayPal payment question. 

    Here are the steps you should follow:

    #1. Add check box/ radio button question in your to list your products / items.

    #2. Add the calculation values of each of the check box/ radio button options. Please check the screenshot below:


    #3. Add a calendar control in your form and set the default date to display as current date. You should hide this date field.

    #4. Add one text box in your form.

    #5. Add condition in your form to check the date value. If the date is greater than a specified date then add the shipping amount in the text box we have added in step #4 and then show it in the form.

    #6. Add a "Form Calculation" widget in your form to calculate the product price and shipping.

    Please check the screenshot below:


    Please take a look at the following demo form I created for you ans see if this is what you wanted to achieve:  http://form.jotformpro.com/form/51230549060951? 

    Feel free to clone this form for a closer look. The following guide should help you in form cloning:  http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL 

    Do get back to us if you have any questions.

    Thank you!