I trying to find a way to get DisplayMode.Disable when say "CLOSED" on textput.
When the screen displays 'CLOSED,' the icon becomes disabled, which means you can't click on it until the screen changes to 'OPEN' to allow interaction with the icon.
This formula will check if the text input value is equal to "CLOSED" and set the display mode of the icon accordingly. You can replace TextInput1 with the name of your text input control and assign this formula to the DisplayMode property of your icon.
If(
TextInput1.Text = "CLOSED",
DisplayMode.Disabled,
DisplayMode.Edit
)
If you have any questions or feedback, please let me know. Have a great day! 😊
-----------------------
PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]
I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻
Hi @dylandavis09,
You can change the Icon DisplayMode depending on the Text value of that label:
//DisplayMode Icon
If(
//Change LabelName to the correct control name displayed "CLOSED"
LabelName.Text = "CLOSED",
DisplayMode.Disabled,
DisplayMode.Edit
)
If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.
Thanks!
WarrenBelz
146,658
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional