Page 1 of 1

form for certain dates and hours?

Posted: Sun Oct 06, 2024 1:41 pm
by manuelm
I want to make a website with a layer and a popup form offering to call the visitor by phone. Up to that point I have no problem. The important thing is that I want that form to only appear from Monday to Saturday from 7 a.m. to 7 p.m.

The data collected in the form must be sent via WhatsApp to a specific number.

Any idea how to do it?

Re: form for certain dates and hours?

Posted: Sun Oct 06, 2024 3:53 pm
by wwonderfull
WWB 19.3 had a new feature for the TIMER tool
- New feature: Added a new "Day of the Week" option to the Timer object. This enhancement allows you to set timers that trigger based on specific days of the week.
For instance, you can use this feature to redirect users to a different page on weekends (Saturday and Sunday).

Re: form for certain dates and hours?

Posted: Sun Oct 06, 2024 4:52 pm
by manuelm
Is it a free update? The timer I have do not have days option... I have version 19.4.1

How do I proceed in order to update free extensions?

Re: form for certain dates and hours?

Posted: Sun Oct 06, 2024 4:56 pm
by Pablo
This feature is also available in 19.4.1

Re: form for certain dates and hours?

Posted: Sun Oct 06, 2024 5:00 pm
by BaconFries
It is also available in 19.4.1 it is not an extension but a feature in the software. See the following on how to use.An introduction to Timers
If you require the form to be a WhatsApp then see the following thread you previously asked about.
viewtopic.php?p=497523#p497523

If the timer function is not what you need then it will require a custom solution in either php (serverside) ot javascript embedded in the html.

Re: form for certain dates and hours?

Posted: Sun Oct 06, 2024 6:58 pm
by manuelm
The "Timer" I found in the toolbox does not have the "days" option. So I think I need to update the toolbox. How do I proceed to have the "Timer" with the days option?

Re: form for certain dates and hours?

Posted: Sun Oct 06, 2024 7:34 pm
by Pablo
This feature was added in version 19.3, so if you have 19.4 then the option should in the list.

If you do not have this option then please make sure you have the latest update installed.

Re: form for certain dates and hours?

Posted: Sun Oct 06, 2024 9:33 pm
by manuelm
I am pretty sure I have the last update, and the timer in the toolbox do not have days

Re: form for certain dates and hours?

Posted: Sun Oct 06, 2024 9:59 pm
by BaconFries
The latest version is WYSIWYG Web Builder 19.4.1 (last update: September 27, 2024) you can download.it from the following https://www.wysiwygwebbuilder.com/download.html

Re: form for certain dates and hours?

Posted: Sun Oct 06, 2024 10:25 pm
by MAX_CDF
Try restarting the program or reinstalling it.

Re: form for certain dates and hours?

Posted: Sun Oct 06, 2024 10:46 pm
by manuelm
Now I reinstalled it. Sorry, it seems there is something I don't understand, as English is not my native language. I live in Argentina and I speak Spanish. Trying to better understand how "timer" works, I see that it is possible to determine hours in which an object is available, and on the other hand, days of the week in which it will be available. What I need is that a certain layer or dialog is available from 7 AM to 7 PM, only from Monday to Friday. Is it possible to do that?

Re: form for certain dates and hours?

Posted: Mon Oct 07, 2024 6:04 am
by Pablo
I think you can implement this with two timers.
- First always show the dialog, then hide it via timer when it should not be visible.
- Use a a timer to close the popup on Saturday and Sundays.
- Use another timer to close the dialog between 7 PM to 7 AM

Re: form for certain dates and hours?

Posted: Mon Oct 07, 2024 10:20 am
by manuelm
Great idea! Thank you Pablo!