Hello,
I have been creating a somewhat complex form. What it does is allows a user to book one way or retour pickup service. Depending on a radio button it colapses extra information for the retour.
The user has to select the date & time for pickup (1 calendar input, 1 hour select, 1 minutes select) and also the same for the return trip if selected. This is all working, but now I have some issues with validating or restricting the return date & time to atleast 1 hour after the date & time for the pickup.
I know the calendar supports mutli-calendar support with padding, but it doesn't seem that I can use it. It requires a nested calendar variable and chronoforms does not do this. If I could use this it would solve my date difference problem, but I still have to find a way to deal with the time difference problem.
I would like to ask for some guidance or direction to where I should look for a solution for this. Is there a way to create my own custom validation or extended validation to deal with this problem?
If so, can anyone point me in the right direction?
I have been creating a somewhat complex form. What it does is allows a user to book one way or retour pickup service. Depending on a radio button it colapses extra information for the retour.
The user has to select the date & time for pickup (1 calendar input, 1 hour select, 1 minutes select) and also the same for the return trip if selected. This is all working, but now I have some issues with validating or restricting the return date & time to atleast 1 hour after the date & time for the pickup.
I know the calendar supports mutli-calendar support with padding, but it doesn't seem that I can use it. It requires a nested calendar variable and chronoforms does not do this. If I could use this it would solve my date difference problem, but I still have to find a way to deal with the time difference problem.
I would like to ask for some guidance or direction to where I should look for a solution for this. Is there a way to create my own custom validation or extended validation to deal with this problem?
If so, can anyone point me in the right direction?