How to add date validations in google forms?

Google Forms does not support response validations for date questions. The workaround is to add a short answer question with the required response validations and add the calculations in Formfacade.

How to allow users to submit only if it is 7 days in advance?

Let's take the example of leave request form. Employees must submit their leave requests 7 days in advance. Since Google Forms does not have the option to add response validations for date questions, we cannot implement this in native Google Forms. Please follow the instructions below to implement the workaround using Formfacade.

Using IFS condition to set the valid response

IFS function evaluates multiple conditions and returns a value that corresponds to the first true condition. We will use the IFS function to check if the leave request date is 7 days in advance and set the answer as "Yes" if true. Otherwise, set the answer as "No".

IFS(leave_from.diff(TODAY(),"days")>=7,"Yes","No")

Note: To enter leave_from, type @ in the calculate option and select the leave from date question from the list.