Good day all,
I have a leave form and the user is allowed to submit several requests in the same form.
I have a start date field, end date field, and a dropdown field to select the type of leave and it is in a collection.
The problem is , users can submit dates that overlap with eachother.
i already had javascript code to validate so that the end date cannot be less than the start date in each row for the collection.
i was wondering whether it would be possible with javascript code to restrict the start date from not being less than the previously submitted end date?
below is my form screen :
as you can see, the 10th of April is being selected for sick leave while the above request is from 6th April till 12th April.
Any help will be appreciated.