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

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

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard