Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Condition include during time of day

milesbaltrusaitis
Level 1
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
yuhuisg
Correct answer by
Community Advisor
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
yuhuisg
Correct answer by
Community Advisor
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.