Date validation on a biz form

Deanna Martens asked on February 29, 2016 15:58

Good morning,

I have a date and time field on a biz form that I am trying to validate. I do not want the user to be able to select/enter a date and time that is in the future from when they are filling out the form.

Any help would be appreciated.

Thank you,Deanna

Correct Answer

Trevor Fayas answered on March 1, 2016 01:20

This can be done through the "General Condition" Validation rule.

Add a Validation Rule to the field, set the type to "General Condition", then hit "Edit"

Go to the "Code" tab and type in:

value <= DateTime.Now

Hit apply and save the field.

value will be replaced with the user's given value, tested and it works!

PS If used, please mark question as answered :-)

1 votesVote for this answer Unmark Correct answer

Recent Answers


Deanna Martens answered on March 1, 2016 14:19

It works perfectly, thank you!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.