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 / 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,741 Super User 2025 Season 2 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,741 Super User 2025 Season 2 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard