I have a form that has a required field called "Event Date." I would like to set a condition to where if the event date is more than 21 days away from the start date of the form being submitted, it rejects the form. I have the flow in place for it, I am just not sure on how to write the condition. Thanks for any suggestions.
Question
Question
Answer
I second what Craig said. If you can prevent a process from completing for erroneous reasons, that would be better. So instead of sending them an email that it's too soon to complete, put that message in the form and essentially prevent them from going forward and submitting.
You can calculate the timer in a single line field using =IF(DATEDIF(CurrentDate,EventDate,"d")>20,"Yes","No"). Create a hidden currentdate field that automatically pulls whatever today's date is. Then use a show hide rule that if Morethan21days is Yes, you hide the rest of the form and display a message.
If you need to send the email or do an additional step and the form should still be submitted, you can use the same Morethan21days field as your conditional expression in the gateway.