Validate event End date

Is there a validation or client side code to check that End Date picker value is bigger than Start date picker. I’m building a calender event insert form.

I am guess some sort of validation on Submit Button click?

if text2 > text 2 : submit the form?

Never mind i found it.

Add Dynamic Attribute on End input Date Picker and set Min Date = Start.value

2 Likes

Just use the dynamic attributes of datepicker 2 and set min date = datepicker 1 value.
See:

1 Like

Great question @Kattouf, I had actually never thought about validation in the date picker, but will be adding it because of this discussion.

1 Like