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
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.
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.
WarrenBelz
146,731
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,075
Most Valuable Professional