Restrict Dates to After a Specified date in a Request Offering
I've come across an issue with a customer whereby a user who was completing a new starter form was able to select a leave date before their start date.
I understand there's nothing which can be done from a request offering perspective but am wondering if it is possible to take the start date field using some customjs and overwrite the earliest date option for the leave date?
Answers
Assuming that the form has the Date/Time picker control for the start and leave dates, the picker can be configured in the ARO to only display dates X number of days from the user's current date and up to Y number of days thereafter.
Therefore, when the user is completing the request, the available leave date to select from would always be a future date.
What would be good in this instance would be the ability to take whatever start date is selected (which is based off the users current time) and then set the leave date's earliest time as the selected start date.
I'm assuming this can be performed with some customjs