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 make a Text Lab...
Power Apps
Answered

How to make a Text Label visible but not selectable?

(0) ShareShare
ReportReport
Posted on by 101

I have a floor plan with desks users can book. The desks are set up as a gallery, and I used XY-coordinates to overlay it onto a .jpg floor plan. Each item in the gallery has a desk icon and a text label. By default, if a desk is already booked for it should display the user who booked it (text label). If a desk is selected, a query is ran and additional information is displayed elsewhere on the screen.

alex93jansen_1-1626022324569.png

To accommodate for lengthy names, bookedPersonLabel is much bigger than deskIcon and extends into other desks. Visually, this isn't really a problem (just a limitation that's impossible to work around), but as a result it's not possible to select the correct desk. Either OnSelect for bookedPersonLabel is false and no desk can be selected, or OnSelect is set to my query and the wrong desk will be selected.

 

An obvious fix would be to create another, transparent, icon that goes on top and matches the desks exactly so users will select this instead. However, is there no cleaner way to do this? Is there a way to have my Text Label visible, but for it not to be selectable and instead users select the next item on the list (deskIcon)? I probably have a bunch of use cases for this, and adding an additional layer each time creates a lot of clutter.

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

    Hi @alex93jansen :

    Do you want to select a button below the visible label?

    vbofengmsft_0-1626058866077.png

    If so,I'm afraid that is not available.But I have an alternative:

    When the user clicks on the label, let it disappear for 3 seconds, so that the user can click the button under the label

    1\Set the label's OnSelect property to

    Set(VarVisible,false); /*VarVisible is my custom variable*/
    Set(Timer1Start,true)

    Visible

    VarVisible

    2\Add a timer control

    Duration

    3000

    Start

    Timer1Start

    OnTimerEnd

    Set(VarVisible,true);Set(Timer1Start,false)

    Visible

    false

    3.gif

    Best Regards,

    Bof

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard