web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Displaymode disabled b...
Power Apps
Unanswered

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:
I have the same question (0)
  • Verified answer
    Selvarokith_B Profile Picture
    82 on at
    Re: Displaymode disabled based on multiple criteria

    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
    Re: Displaymode disabled based on multiple criteria

    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard