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 / Disable Button if Shar...
Power Apps
Answered

Disable Button if Sharepoint List Field Says Yes

(0) ShareShare
ReportReport
Posted on by 18

Hello,

I am looking to find a way to have a button in my PowerApp disable if a field in Sharepoint says "Yes". Does anyone know how to do this?

Thanks!

 

Categories:
  • anibra Profile Picture
    278 on at

    Hi @Perrault ,

    in the DisplayMode property of the button use the following: If(ThisItem.YesNoCol = true, DisplayMode.Disabled, DisplayMode.Edit) 

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Perrault,

    Have you solved your problem?

    Do you want to disable the button in the Power Apps based on a specific fields value?

    Could you please tell me that the column type of the field, is it a Yes/No type or a Text type?

     

    Actually, how to set the DisplayMode property of the button depends on what the column type is.

    As @anibra mentioned that if the column type is a Yes/No column, you could try the formula provided.

     

    If the column type is a Choice or a Text, please modify as below:

    If(ThisItem.Column.Value= "Yes", DisplayMode.Disabled, DisplayMode.Edit) // Assume it is a Choice type
    If(ThisItem.Column= "Yes", DisplayMode.Disabled, DisplayMode.Edit) // Assume it is a Text type

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard