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 / Displaymode disabled b...
Power Apps
Answered

Displaymode disabled based on multiple criteria

(0) ShareShare
ReportReport
Posted on by 79

 

I have a number of buttons i need to disable on multiple conditions. if any or all of the variables below are true button should be disabled?

 

If i use just one variable the button is disabled, its just when i want to add more than one

Works as a single condition: If(var_R1_C_1_1_remove,DisplayMode.Disabled,DisplayMode.Edit)

 

how to make it work with the below.

If(var_R1_C_1_1_remove,DisplayMode.Disabled,DisplayMode.Edit)||
If(var_R1_C_1_3_remove,DisplayMode.Disabled,DisplayMode.Edit)||
If(var_R1_C_1_4_remove,DisplayMode.Disabled,DisplayMode.Edit)||
If(var_R1_C_1_5_remove,DisplayMode.Disabled,DisplayMode.Edit)||
If(var_R1_C_1_6_remove,DisplayMode.Disabled,DisplayMode.Edit)||
If(var_R1_C_1_7_remove,DisplayMode.Disabled,DisplayMode.Edit)

 

Thanks in advance.

Categories:
  • Verified answer
    Selvarokith_B Profile Picture
    82 on at

    Hi @Mclean2023 

    Try this code

     

    If(
    Var1 = false || Var2 = false || Var3 = false,
    DisplayMode.Disabled,
    DisplayMode.Edit
    )

     

    Thanks

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • Mclean2023 Profile Picture
    79 on at

    Thank you, that worked perfectly.. 🙂

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard