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 visibility with...
Power Apps
Unanswered

Button visibility with more than one condition

(0) ShareShare
ReportReport
Posted on by 71

Hi,

 

I am struggling with a very simple thing - Al I want is to make a button visible, when 2 fields of my mask are filled ...

Everything works perfect, if I check against one field - it seems like I have a syntactical problem with checks against 2 fields ...

 

Thats the code in my button-Visible field

 

If ((IsBlank(field1) && IsBlank(field2)); false; true)

 

what am I doing wrong?

Thanks a lot!

 

 

Categories:
I have the same question (0)
  • JavoMejia Profile Picture
    20 on at

    Hello @ddlamb you must use coma in your if function.

  • ddlamb Profile Picture
    71 on at

    you mean instead of ; ... no, in Austria/Germany etc. that is ok!

  • BitLord69 Profile Picture
    914 on at

    Try using .Text property of each field, so field1.Text.

     

    Also, you don't need the If-statement, just write the logical statement right away, like this:

     

    Button.OnVisible:

    IsBlank(field1.Text) && Isblank(field2.Text)

    If that doesn't work, you probalby have default value in one of the fields that might be whitespace. You can use Trim inside the IsBlank just to check if it helps.

     

    IsBlank(Trim(field1.Text)) && Isblank(Trim(field2.Text))

     

    Good luck!

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
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard