• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

VAD Time of day with hours and minutes

Status
Not open for further replies.

jmtelecom

Gold Partner
Advanced Certified
Joined
Apr 15, 2009
Messages
35
Reaction score
11
Hi

does anyone has a template that gives different welcome prompt message depending on the time of day.
but not only on the hours but also in minutes?

like 8:30 tile 12:00 and 13:00 till 18:00

I only found this one 3cx.com/blog/docs/javascript-3cx-vad/

thanks ;)
 
Hi there,

That article shows how to use a javascript expression to get the current hour. You can do the same to get the current minutes, calling:
new Date().getMinutes()

That will return a value from 0 to 59.

You can combine both calls, to decide the flow.

Kind regards.
 
I feel that this is beneficial to the reader too much.
 
Hi Edossantos

I did it like this but this does not work?
 

Attachments

  • VAD.JPG
    VAD.JPG
    44.1 KB · Views: 1,844
And what error are you getting?
 
Status
Not open for further replies.
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.