Expand my Community achievements bar.

Preventing Date of Less Than 3 Days Into the Future

Avatar

Level 1

Hi All:

Newbie here, and I'm trying to come up with a way to prevent a user from selecting a date that is less than 3 days into the future in a date field. For example: Today is March 23, 2015, and I'd want a user filling out my form today to have to select a date on or after March 26, 2015.

Thanks!

1 Reply

Avatar

Level 7

You could it with an error message. You would need to get the current date, then compare the date selected and if they did it outside of the requirement you would clear the field and popup a warning.