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

    Payment Integrations: How to set up tax based on dates?

    Asked by pbssepm on October 13, 2016 at 03:18 PM

    We have monthly luncheons where members can register for the Luncheon/Talk but we are trying to encourage them to register before a certain date because we have to get a headcount for food and are charged an extra rate when people register late. Is there a way to add a conditional logic to the page so that if the person registers after a certain date they are assessed a $10 fee extra to cover cost? I was looking for a timestamp widget that way I could try to do the conditional logic off of that but did not see one

    Page URL:

  • Profile Image
    JotForm Support

    Answered by Kevin_G on October 13, 2016 at 07:55 PM

    You may set this using two date fields, the first field would have by default the date you want to set as final date to register and the second date field will have the current date by default, you will also need to use the Form Calculation widget to get the days passed after the final date. 

    Here is a screenshot about how you can set a desired date in the date time field: 

    Here is how you can set the current date: 

    Adding the Form Calculation wizard: 

    The Form Calculation widget needs to be set up like shown in the image below: 

    This way you will get the difference in days between each date, if the current date is after the final date then the calculation will return a negative value and here is where you can use conditions to add the additional tax. 

    But do note that using the payment integration to sell products will not allow you to alter the total amount, to do so, you will need to use your integration to collect custom amounts and then add the current products you have as form fields. 

    I would suggest you to set up your products always in check boxes so they will look the same as they currently look and your users may select more than one. 

    You will also need to add the price for each product as calculation value, this guide will provide you with more details about it: How-to-Assign-Calculation-Value

    The form calculation value will also help you to calculate the total amount due, here is also a guide that will help you to pass the calculated value to the payment field: How-to-Pass-a-Calculation-to-a-Payment-Field

    Here is also another guide that will help you to perform calculation in your form: How-to-Perform-Calculation-in-the-Form

    Hope this helps. 

  • Profile Image
    JotForm Support

    Answered by Kevin_G on October 13, 2016 at 07:58 PM

    I forgot to provide the screenshot of the condition, here it's: 

    If you have any question, please let us know.