Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Disable Button Based on Agent Email Address

    Posted 12-14-2022 08:43
    Edited by Hudson Eakin 12-14-2022 08:43
    No replies, thread closed.

    Good Morning! 

    I'd like a button to enable/disable for agents based on the presence of company names in email addresses. 

    For example, if the agent's email contains "apples" then it will be disabled, but it will be available for agent emails that contain "oranges."

    I'm new to this so the closest I've been able to get is...

    indexOf({{Scripter.Agent Email}}, "apples") 

    Any help would be appreciated! Thanks in advance! 


    #ArchitectureandDesign

    ------------------------------
    Hudson


  • 2.  RE: Disable Button Based on Agent Email Address

    Posted 12-14-2022 09:57
    No replies, thread closed.
    Hi,
    Disable, or hide?
    For hiding, you need to put the button in a container and then hade / reveal the container.
    Anyway, for either there is a property that expects a Boolean variable to control the visibility or to enable. So you need to create a Dynamic Boolean that sets its value dependent on the criteria you specify and then use that variable in the corresponding property.
    HTH

    ------------------------------
    Paul Simpson
    Eventus Solutions Group
    ------------------------------



  • 3.  RE: Disable Button Based on Agent Email Address

    Posted 12-19-2022 10:42
    Edited by Hudson Eakin 12-19-2022 10:42
    No replies, thread closed.

    Hey Paul! 

    Thanks for the guidance! I'm looking to Hide, so I'll focus on the container instead of the button. 

    I slipped on the dynamic vs regular variable too, thanks for being specific!

    I'll take another wack at the variable with those things in mind.