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 / Hide the Submit Button...
Power Apps
Answered

Hide the Submit Button based on Multiple conditions

(0) ShareShare
ReportReport
Posted on by 1,362

Hello,
I have two Yes/No fields
I have part of the issue solved where I can show the Submit button if either Yes/No field is true but I am not able to hide the Submit button if both Yes/No fields are true.
I also have a label that shows when both Yes/No fields are true.

In the buttons Visible property I have the following: 

golfnutt82_1-1635269456246.png

I even tried this without success:

golfnutt82_2-1635269926281.png

 

golfnutt82_3-1635270047746.png

 

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @golfnutt82 

     

    Your Visible property is using an OR, meaning that if either one is true, then the control will be visible.  As I understand you, you want it to be visible only if both are true.

    Please consider changing your Visible Formula to the following:

    DataCardValue8.Value && DataCardValue9.Value

     

    You don't need all the redundant true's and false's in the formula or the If statement.  The above will evaluate to either true or false already - which is all that is needed.

     

    I hope this is helpful for you.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @golfnutt82 

    Also, just re-read - perhaps you are saying you want it hidden if both are true.

    If so, then change the formula to:

    !(DataCardValue8.Value && DataCardValue9.Value)
  • golfnutt82 Profile Picture
    1,362 on at

    Hi Randy,
    This worked.
    Thank you again for a learning experience.
    Why the !() vs. not using it in your first example? They look to be the same expect for the exclamation point and parens.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @golfnutt82 

    The ! is a NOT function.  The parens around it are so that we perform the logical AND and then take the NOT of that.

     

    So, breaking the Boolean out.

     

    For : DataCardValue8.Value && DataCardValue9.Value

     

    DataCardValue8 DataCardValue9 Result (Visible)
    false false false
    true false false
    false true false
    true true true

     

    For : !(DataCardValue8.Value && DataCardValue9.Value)

     

    DataCardValue8 DataCardValue9 Result (Visible)
    false false true
    true false true
    false true true
    true true false

     

    You can see in the last on, the results are just the logical NOT of the first table.

     

     

  • golfnutt82 Profile Picture
    1,362 on at

    Very awesome!
    Thanks again!

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

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard