Skip to main content

Notifications

Community site session details

Community site session details

Session Id : qLv5ljGQbiXjpS8oky4TW9
Power Apps - Building Power Apps
Unanswered

Button to change form to visible from invisible

Like (0) ShareShare
ReportReport
Posted on 22 Sep 2023 08:20:33 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

  • Rajkumar_M Profile Picture
    3,631 Super User 2025 Season 1 on 22 Sep 2023 at 08:36:56
    Re: Button to change form to visible from invisible

    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.

  • Rajkumar_M Profile Picture
    3,631 Super User 2025 Season 1 on 22 Sep 2023 at 08:36:54
    Re: Button to change form to visible from invisible

    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 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,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,075 Most Valuable Professional

Leaderboard