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

Community site session details

Session Id : n4mWNySncL2tSPpELMGr+o
Power Apps - Building Power Apps
Unanswered

Change button visibility based on table column value

Like (0) ShareShare
ReportReport
Posted on 23 Mar 2023 12:49:01 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 24 Mar 2023 at 07:24:34
    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 23 Mar 2023 at 16:31:13
    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 23 Mar 2023 at 14:55:45
    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 23 Mar 2023 at 13:09:35
    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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Loading complete