web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to DisplayMode.Dis...
Power Apps
Answered

How to DisplayMode.Disable when TextInput is matched the word

(0) ShareShare
ReportReport
Posted on by 438

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.

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    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!

  • Verified answer
    SpongYe Profile Picture
    5,616 Super User 2025 Season 2 on at

    Hi @dylandavis09 

     

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard