Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Change button visibility based on table column value

(0) ShareShare
ReportReport
Posted on by

Hello.

I have a PowerApp with a form that I submit. I then have a gallery including the submitted forms. I am able to open them and edit them by patching the values with new values by clicking a button.

 

My problem is that I want to show a button based on a single Yes/No value in that table. In the Visible tab of the button I want to show, I have an If() statement that sets the value to true/false based on the value of the column. 

 

I have tried to ResetForm() in the OnSelect of the button that I use to Patch() these values, however, the button is always visible, even though I can see the value change in the table.

 

How can I make this button show/hide upon changing this single value?

  • Hagru Profile Picture
    on at
    Re: Change button visibility based on table column value

    I want to use the edit form as a bit of a multi-purpose form. I therefore have a button in the form that I want to make invisible when clicking another button. This other button patches the value of a given form column. Depending if this form column is yes/no, I want to show/hide the first button. However, it seems the visibility is stuck on either true or false, and doesn't change when I patch this other value.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Change button visibility based on table column value

    @hagru 

    It doesn't have to update, it's either true or false.

  • Hagru Profile Picture
    on at
    Re: Change button visibility based on table column value

    It still seems like the value doesn't update properly in the Visible property.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Change button visibility based on table column value

    @hagru

    You never need an If function for the visible property. The formula is either true or false.

    Datatable1.Selected.ColumnName = somevalue 

    Is either true or false

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard