Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

Condition include during time of day

Avatar

Level 1

I've got a live chat widget dropped on our site via Launch rule. I would like the script to be active during our support hours only.

 

What kind of condition could I use to restrict firing this rule during during our support window? (8 AM to 8 PM CT)

 

Thanks! 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Here's one possible solution:

  1. Create a Data Element that returns the current hour of day in CT in 24-hour format. You'll need to write your own code to do this.
  2. In your Rule that loads the widget, include a Condition that checks if this Data Element's value is between 8 and 20.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Here's one possible solution:

  1. Create a Data Element that returns the current hour of day in CT in 24-hour format. You'll need to write your own code to do this.
  2. In your Rule that loads the widget, include a Condition that checks if this Data Element's value is between 8 and 20.