Date field (not datepicker) validate that date is in the past

I am using standard date fields (not the datepicker) and want to validate input to make sure a date in the future can’t be entered but the only validation option seems to be that it’s a valid date.

Is there a solution to this?

Try it with adding dmx-bind:min="'now'.formatDate('yyyy-MM-dd')".

2 Likes

Perfect. Thanks Patrick. It didn’t occur to me to look in the Dynamic Attributes section but I will now keep that in mind.