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 / Button display conditions
Power Apps
Unanswered

Button display conditions

(0) ShareShare
ReportReport
Posted on by 726

I have a button i wish to disable under these conditions but i am not sure how to enter this 

 

If CB_AE_Yes.Value = true and Blank(AddMediaButton4.Media) , Set button as edit

OR

CB_AE_No.Value = true, set button as edit 

 

otherwise disabled 

 

I have done this 

 

If(CB_AE_Yes.Value = true && IsBlank(AddMediaButton4.Media) , If(CB_AE_No.Value = true, DisplayMode.Edit, DisplayMode.Disabled))

 

 And it works for the first part but is ignoring the CB_AE_No section, and is not disabling the button if none of the 

Categories:
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Try the following:

    If(
    (CB_AE_Yes.Value = true && IsBlank(AddMediaButton4.Media)) || CB_AE_No.Value = true,
    DisplayMode.Edit,
    DisplayMode.Disabled
    )
  • amyharkus86 Profile Picture
    726 on at

    @a33ik same thing, The yes and no checkboxes work and will disable the next button but the AddMedia doesn't make any difference. 

     

    Slight change on it and it works as required 

     

    Thank you 

     

    If(
    (CB_AE_Yes.Value = true && !IsBlank(AddMediaButton4.Media)) || CB_AE_No.Value = true,
    DisplayMode.Edit,
    DisplayMode.Disabled
    )

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard