Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Make script button not clickable based on time of day

    Posted 07-14-2025 07:00

    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
    ------------------------------


  • 2.  RE: Make script button not clickable based on time of day

    Posted 07-14-2025 11:32

    Hi David,

    I am going to move this across to the Genesys Cloud Developer Community to see if any there can help with this. 



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: Make script button not clickable based on time of day

    Posted 07-14-2025 12:32

    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
    ------------------------------