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 to change form ...
Power Apps
Unanswered

Button to change form to visible from invisible

(0) ShareShare
ReportReport
Posted on by 394 Super User 2024 Season 1

Dear All,

 

I have a screen which has a form with the form set to invisible.

 

I have a button which I want to make it visible when clicked on.

 

How is best to achieve this?

 

Kind Regards

 

Daniel

Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @DLCaterhamSch 

     

    Button's "OnSelect" property:

     

    Set(IsFormVisible, !IsFormVisible)


    Set the form's "Visible" property to the value of the IsFormVisible variable:

     

    Visible = IsFormVisible

     

    This approach should toggle the visibility of the form each time you click the button. The form will start as invisible when the app loads, and clicking the button will switch between showing and hiding the form.

     

    Refer this link : Solved: Show/hide a form with a button - Power Platform Community (microsoft.com)

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    This is another method to hide form 

    Create a variable something like "IsButtonVisible" and set its initial value to false.

     

    Set the Visible property of the form to the variable you created. In this case, it would be "IsButtonVisible".

    Add an OnSelect property to the button and set it to the following formula:

     

    Set(IsButtonVisible, true)


    This formula will change the value of the "IsButtonVisible" variable to true when the button is clicked.

    Optionally, you can add another button or action to hide the button again. For example, you can add a "Hide" button with the following formula in its OnSelect property:

     

    Set(IsButtonVisible, false)


    This formula will change the value of the "IsButtonVisible" variable back to false, hiding the button again.

    By using a variable and changing its value when the button is clicked, you can control the visibility of the button dynamically. When the variable is set to true, the button will be visible, and when it's set to false, the button will be hidden.

     

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard