Skip to main content

Notifications

Power Apps - Building 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 !

  • s44 Profile Picture
    s44 691 on at
    Re: Prevent the user from clicking on an item if it is red

    Thank you so mush, it's work ! 

  • Verified answer
    BelgianDev Profile Picture
    BelgianDev 53 on at
    Re: Prevent the user from clicking on an item if it is red

    Hey!

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

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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard