web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Visible Button Condition
Power Apps
Unanswered

Visible Button Condition

(0) ShareShare
ReportReport
Posted on by 261

Hi everyone, hope you all had a great bank holiday!

 

I have a Button I need to become visible on a specific condition. 

 

I have 3 number entry boxes as you can see in the image below. 

 

The button should only become visible if the total number = 10 "however" entry A must have a minimum of 8. 

 

Test Screen2.png

 

Any ideas?

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

     

    Try this on the Visible of the Button:
    TextBox1.Text+TextBox2.Text+TextBox3.Text=10&&TextBox1.Text>=8

    Or

    Value(TextBox1.Text)+Value(TextBox2.Text)+Value(TextBox3.Text)=10&&Value(TextBox1.Text)>=8

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • mdevaney Profile Picture
    29,989 Moderator on at

    @Courtney 

    Put this code in the Visible property of your button.

    ((Value(TextInput_A.Text) + Value(TextInput_B.Text) + Value(TextInput_C.Text)) >= 10 And Value(TextInput_A.Text) >= 8

     

    Aren't we already working on this problem together here?

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Fail-Condition-Question/m-p/518618/highlight/true#M158378

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Courtney Profile Picture
    261 on at

    Morning Mdevaney. Thanks for the support so far! 

     

    So....

     

    There is a machine we are using which must be tested daily and currently, we are using lots of paper to document these tests which I believe a PowerApp can fully replace! 

     

    I need to show both approaches before the end-user decides what option they want to be implemented into the final build.

     

    This is one component that will then need to be added to other requirements that must be met before the button becomes visible as I want the app to remove as much human error as possible.

     

    Based on the data entered, I want a button to become visible that will take the user to a pass screen. Anything other than these conditions, the display mode of another button should be enabled that will take the user to a fail screen. 

    I have the functions working elsewhere but this is the most challenging solution I've had to build so far! The support has been much appreciated.

     

     

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    You might tag @mdevaney on this - it is easier for him to see in feed (just done now as at left)

  • mdevaney Profile Picture
    29,989 Moderator on at

    @Courtney 

    I think you're just asking how to enable/disable buttons based on the condition I wrote correct?

     

    Put this code in the DisplayMode property of your 'Pass' button

    If(
     ((Value(TextInput_A.Text) + Value(TextInput_B.Text) + Value(TextInput_C.Text)) >= 10 And 
     Value(TextInput_A.Text) >= 8,
     DisplayMode.Edit,
     DisplayMode.Disabled
    );

     

    And use this code in your 'Fail' button

    If(
     ((Value(TextInput_A.Text) + Value(TextInput_B.Text) + Value(TextInput_C.Text)) >= 10 And 
     Value(TextInput_A.Text) >= 8,
     DisplayMode.Disabled,
     DisplayMode.Edit
    );

     

     

    @WarrenBelz 

    Thanks for the assist.  Class-act as always 🙂

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard