Forums

Only use a form between 00u00 and 10u15

snelprint 07 Oct, 2017
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 07 Oct, 2017
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
snelprint 07 Oct, 2017
Hi Bob

Thank you for the quick answer.

Is there a manual for working with te Event Switcher?

Kind Regards
GreyHead 08 Oct, 2017
Hi snelprint ,

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

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