web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : G4ctjQU2+yyUU1+6InHYgs
Power Apps - Building Power Apps
Answered

How to make a Text Label visible but not selectable?

Like (0) ShareShare
ReportReport
Posted on 11 Jul 2021 16:58:05 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.

  • Verified answer
    v-bofeng-msft Profile Picture
    on 12 Jul 2021 at 03:10:09
    Re: How to make a Text Label visible but not selectable?

    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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473