Buy Now
Sign in

Only use a form between 00u00 and 10u15

snelprint , October 07 2017
S
snelprint
Dear

I have used Chonoforms to make a form for people to order sandwiches. The component works very good!

I have a Question

How can I make that after a certain time people can not order any more?
I wan that It is only possible to order between 00.00 and 10.00.

Kind Regards
GreyHead
Hi snelprint,

You can use an Event Switcher action in the form Load event. Set two events e.g. 'open' and 'shut' and add PHP to check the current time. In the 'open' Event of the Switcher add the Display Section action; in the 'shut' event show a 'Sorry we're closed now' message.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
S
snelprint
Hi Bob

Thank you for the quick answer.

Is there a manual for working with te Event Switcher?

Kind Regards
GreyHead
Hi snelprint ,

There is a section in the CFv6 manual at page 30.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much