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 Apps - Building 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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard