I'm pretty new to this. My initial thought is to figure out the hourOfDay in Architect and pass it into a script variable. The logic in each of your button actions would then check for hourOfDay to be within the acceptable values for that specific button. If that's true, then let them click the button. Otherwise, you could either pop an alert that they're not allowed to use that button right now, or just make the button completely disappear when they can't use it.
------------------------------
Dave Halderman
Business Analyst
------------------------------
Original Message:
Sent: 07-14-2025 06:59
From: David Resch
Subject: Make script button not clickable based on time of day
Hi!
For the past few days I've been working a script for our users to have when they wish to transfer a call.
The reason for it is that we have varying opening hours on different queues, and to prevent calls from being transferred outside of these hours, I've written out the opening hours on each "button" in the script.
However, I would really like to somehow make them not clickable if the current time is outside the set timeframe. Does anyone have any good ideas how I could go about doing this?
This image is an example of what the buttons look like now, they are all scripter actions.
Thanks in advance!
#Unsure/Other
------------------------------
David Resch
System Specialist
------------------------------