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 Apps
Answered

or statement

(0) ShareShare
ReportReport
Posted on by

I am trying to disable a button based on one of 2 criteria. I have searched and googled this and for some reason I cant get this figured out and I am sure it something simple.

 

I need an or statement with these 2 conditions:

 If(ThisItem.ID in PPETracker.PPECountID, DisplayMode.Disabled, DisplayMode.Edit)

If(enteredcount.Text="",DisplayMode.Disabled, DisplayMode.Edit)

 

I got it to work with an and statement (see below)but how do I get it to work as or statement

 

If(And(
ThisItem.ID in PPETracker.PPECountID,
enteredcount.Text=""
),
DisplayMode.Disabled,DisplayMode.Edit)

Categories:
  • eka24 Profile Picture
    20,925 on at

    If(Or(ThisItem.ID in PPETracker.PPECountID,
    enteredcount.Text=""
    ),DisplayMode.Disabled,DisplayMode.Edit)

     

    Also Try:

    If(ThisItem.ID in PPETracker.PPECountID,

    Or
    IsBlank(enteredcount.Text)
    ),
    DisplayMode.Disabled,DisplayMode.Edit)

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @phillyd023 ,

    Based on the needs that you mentioned, I have made a test on my side, please consider take a try with the following formula (set the DisplayMode property of Button😞

    If(
     ThisItem.ID in PPETracker.PPECountID || enteredcount.Text = "",
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

    or

    If(
     ThisItem.ID in PPETracker.PPECountID || IsBlank(enteredcount.Text),
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

     

    Best regards,

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 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard