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 / Make a text label visi...
Power Apps
Answered

Make a text label visible if a button is disabled

(0) ShareShare
ReportReport
Posted on by 21

Hi!

 

I two objects a button and a text label. I want the text label to be hidden if the button is enabled and visible when the button is disabled.

 

Button = btsubmitinsp

Text Label = lbrequired

 

Here's my code for the text label under 'Visible'

 

Hope I can get help, TYIA!

 

If(btsubmitinsp.DisplayMode.Edit,false,true)

 

My conditions for the button getting disabled / enabled are working but the text label remains hidden even if I toggled between disabled and enabled.

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @masanortakamoto 

    You can try to use this code :

    If(btsubmitinsp.DisplayMode=DisplayMode.Edit,false,true)

     

    Best Regards,

    Yueyun Zhang

  • masanortakamoto Profile Picture
    21 on at

    I just tried refreshing to check the post and surprised to see this awesome reply! It's working, thank you so much!

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 408

#3
timl Profile Picture

timl 339 Super User 2026 Season 1

Last 30 days Overall leaderboard