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

Announcements

News and Announcements icon
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 442

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.

Screenshot 2023-11-02 153510.png
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,715 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 936

#2
Valantis Profile Picture

Valantis 604

#3
11manish Profile Picture

11manish 518

Last 30 days Overall leaderboard