Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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.

  • Verified answer
    SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: How to DisplayMode.Disable when TextInput is matched the word

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

  • Verified answer
    LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on at
    Re: How to DisplayMode.Disable when TextInput is matched the word

    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!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard