How to show or hide a field based on a time-frame.

  • cheapo
    Asked on August 25, 2018 at 5:49 PM

    I am Working On Re-Key/New lock Install Form

    We want to add a condition on the Time & Date element (Basic elements not Widgets)

    IF (certain time and Date)  

    SHOW (Text Messsage)

    (Depending the time is the text we want to show) Different time different message 

    If that's Possible, Can you please give me a actual example on how to do it please.

    I appreciate a quick response 

  • David JotForm Support Manager
    Replied on August 25, 2018 at 10:31 PM

    You can implement the same workaround as shown on this guide: https://www.jotform.com/help/439-Conditionally-Enable-or-Disable-a-Form-Based-on-Time 

    Just omit the "hide" part. Let us know if you have more questions.

  • cheapo
    Replied on August 28, 2018 at 6:17 PM

    Thank You for your help your example was very helpull..

    I was able to do the first schedule without a problem but when i ddd the 2nd schedule both texts appear and the times are different.

     "8:00am to 6:00pm - Week-Day"

    "6:01pm - 8:00pm - Week-Day"

    "8:01pm - 12:00 Midnight - Week-Day"

    "12:01 Midnight - 7:55am - Week-Day"

    "7:00am to 6:00pm - Week-End"

    "6:01pm - 8:00pm - Week-End"

     "8:01pm - 12:00 Midnight - Week-End"

    "12:01 Midnight - 7:55am - Week-End"


    These are all the schedules I need to make conditions on the time based on every schedule is going to be a different text..

    Do you think I am Going to have problems?

    and why does my second condition showing? (working on RE-KEY/LOCK NEW/ INSTALL)

  • David JotForm Support Manager
    Replied on August 28, 2018 at 7:48 PM

    Try switching from "any" to "all":

    1535499334works Screenshot 10

    It appears to work fine:

    1535500064working Screenshot 21

    Let us know if you need more help.

  • cheapo
    Replied on August 28, 2018 at 8:35 PM

    Thank You..!

  • cheapo
    Replied on August 28, 2018 at 9:03 PM

    For Some Reason the second condition does not show... I followed Your instructions I changed ANY to ALL and waited to be the time frame of the condition and no text message appears.

    Can You please tell me what I am Doing wrong.

    Thank You...! 

  • cheapo
    Replied on August 28, 2018 at 9:07 PM

    Sorry, It shows already... Took an Extra 5 Min to show 

    Thanks For Your Help


  • David JotForm Support Manager
    Replied on August 28, 2018 at 10:08 PM

    Glad to know that it works. Open a new thread if you need anything else, we will be glad to assist you.