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 toggle a label ...
Power Apps
Answered

How to toggle a label on and off, based on the OnSelect property of TextFields or Drop downs?

(0) ShareShare
ReportReport
Posted on by 73

I need a user to be able to click into a textfield and the OnSelect property will trigger and reveal a label. Once the user has clicked out or clicked on a different control, that label will disappear and another will appear, contextually.

I understand it may involve UpdateContext and a IsNot (!) operator somewhere but I'm stuck!

Categories:
I have the same question (1)
  • Verified answer
    cardinaluk Profile Picture
    73 on at

    Figured it:

     

    Added a label, in that labels default Text prop:

    If(varTitleVis = 1, "A short title please", If(varTitleVis = 2, "Please enter a user", If(varTitleVis = 3, "Please enter the Sponsor", If(varTitleVis = 4, "Requested By", " "))))

     

    For each controls OnSelect prop:

    Set(varTitleVis, #) replace the # with a number.

     

     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard