How to prevent form submission if date is less than a week from now

  • Profile Image
    Asked on November 25, 2016 at 05:41 AM

    I've set up a date field for reservations. The service is only available on Wednesday through to SUnday so Monday and Tuesday are omitted. I'd also like to prevent date selection if it is less than seven days from todays date. So either check that the selected date is '>= today+6'  then allow. Or '<=today=5 then don't validate'  I can't seem to be able to configure the logic though - any help appreciated!

  • Profile Image
    Answered on November 25, 2016 at 06:10 AM

    I see that you are working on form 63203008452343, and the condition you are looking for can be applied easily. The following guide describes how to generally show/hide form fields based on your user's response:

    We will simply set up a condition to hide the Submit button if date is before today+7, as depicted in the following image:

    Please try it out, and let us know how it goes.