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.