4

I have a site where employees input schedule items, each with a Start Date and End Date. I would like an error message to appear when users select an End Date before the Start Date. What formula can I use under Column Validation settings so that the user has to choose an End Date that is greater than or equal to the Start Date column?

I have already done this in the List Validation Settings, but I would like to validate by column so that the error message appears by the End Date field rather than at the bottom of the form.

1 Answer 1

0

You can use PreSaveAction to validate the date fields on your forms.

In PreSaveAction() function, you can write your custom javascript and validate that End Date should be equal or greater than the Start date.

How to use PreSaveAction.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.