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 to change the price of the items based on a time value?

    Asked by StimaDesigns on January 19, 2017 at 10:15 AM

    Is there a way to all for your product at a special price for a set amount of time?For 24 hours, I would like one of my products to be $15 cheaper. Is there a way to set this up automatically, or do I have to do it manually? Meaning after 24 hours, I have to change the price.

  • Profile Image
    JotForm Support

    Answered by Nik_C on January 19, 2017 at 11:49 AM

    There is no direct way to do that, but there is a workaround.

    What you could do is to place one time field that will always use the current time. Then by using the conditional logic, you will say that if the time is 24h from now, or whatever time you like, hide the payment field plus you can show some message. I say hide the payment field, even though you just want to change the price, but what I meant is hide the items you're selling and show other items (with changed price).

    To do that please follow:

    1. Add the time field and set the default time to be Current time:

    2. Add a condition that will say IF the time is (for example) after 17:35 then HIDE the items and show the message:

    I used form calculation field to calculate the total price of the items (that field can be hidden) and value from there is passed to PayPal payment field.

    Maybe it is best if you can check my test form: https://www.jotformpro.com/form/70185026700952

    Also, you should make the time field hidden. So every time your user loads the form it will hold the current time, if the current time is after a specified time, hide the payment.

    Please let us know if this could work for you.

    Thank you!