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 / 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

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

#2
Kalathiya Profile Picture

Kalathiya 321

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 311 Super User 2025 Season 2

Last 30 days Overall leaderboard