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 / Prevent the user from ...
Power Apps
Answered

Prevent the user from clicking on an item if it is red

(0) ShareShare
ReportReport
Posted on by 691

Hello,
I am creating an application to book desks. When the desktop is available, the corresponding dot is green. When the office is not available (if it has already been reserved by someone), the corresponding dot is red.
To be able to reserve an office, simply click on the corresponding button.

 

s44_0-1662540566223.png

 

What I would like to do:
I would like that when the dot is red, we cannot click on it. But I don't know how to do this. Could you help me please ?
Thanks in advance !

Categories:
I have the same question (0)
  • Verified answer
    BelgianDev Profile Picture
    53 on at

    Hey!

    You can write this in the Button "DisplayMode" property:

    If(Self.Fill = Green;DisplayMode.Edit;DisplayMode.Disabled)

  • Hii_iii Profile Picture
    691 on at

    Thank you so mush, it's work ! 

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard