Is there a way to only allow current or future times only.

  • Profile Image
    Asked on August 03, 2017 at 08:55 AM

    I know you can keep it from past dates but it looks like that does not have any effect on past times.

  • Profile Image
    Answered on August 03, 2017 at 12:38 PM

    It is only possible to disable the past days. 

    How to Use the Date Limits Option

    For the time field, you can use current option. This will prevent your users to select the past time for today. 

    Or you can add one more hidden DateTime field to your form, set it to show current date and the current time and use it to perform calculation between other DateTime field. If the calculation is greater than 0 you can show a custom error message and hide the submit button. 

    How to Perform Form Calculation Using a Widget

    Here is my demo form: 

    Feel free to test it and clone it

    You can hide the calculation field as well. 

    Hope this meet what you are looking for.