Hello,
I have two fields: departure date and return date (for flight). Business logic is:
- The departure cannot be in the past (the sooner is today)
- The return cannot happen before the departure (the sooner is the same day as departure)
Best option I've found is to display alert messages in case above rules are not validated.
But instead of letting the user selecting dates that are not valid and then displaying an alert message, it would be better to prevent the user from selecting dates that are not valid.
I would like to request to disable specific dates from calendars depending on Deluge script rules. Examples:
- In departure date field, all dates before today could not be selected
- In return date field, all dates before departure could not be selected
Any travel website integrates those rules.
That would be great if you could work on that.
Best,
Adrien