Prevent reservations less than 24 hours

Morris-the-top 01 Jun, 2015
Hi,
I built a form with chronoform.
It works fine but I have a problem to solve: because the form has a field made up of a timetable by which the user must choose the date of reservation and as the reservation date must not be less than 24 hours I need a system that when you book today for tomorrow (ie inderiore to 24 hours) the system will bloccji posratre and prevent him from completing the reservation. At the same time I would also like that are not clickable and then chosen from the previous day to the current one (in order to avoid retroactive reservations believe that unfortunately happen believe me).

Let me know.

Best Regards
GreyHead 01 Jun, 2015
Hi Morris-the-top,

Please see this FAQ. You should probably also add a back-up validation check using PHP in the form On Submit event if bad dates are a business problem.

Bob
Morris-the-top 01 Jun, 2015
Answer
Hi Bob,
then you tell me that to prevent a user makes a reservation for a date less than 24 hours is enough to put a simple php scripr within the action "On submit" panel setu up?
If so, could you tell me which script should I enter? Unfortunately I'm not a programmer but a simple graphic designer

let me know

Best Regards
This topic is locked and no more replies can be posted.