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
------------------------------
Original Message:
Sent: 12-14-2022 08:43
From: Hudson Eakin
Subject: Disable Button Based on Agent Email Address
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