Hello, everyone!
I have a question about the hide/show button.
I want to have a button to hide or show the image. The text of the button is "hide", when I click it ,the image is invisible, and the button text change to "show", and click the button again, the image back to visible ,and the button text back to "hide".
How this function would be done in power apps? Could anyone help me, thanks!!!
Thank you very much!
Follow your instruction, I successfully do this function.
on the "Onselect" property of button
UpdateContext({VarHide:!VarHide});
Select the image you are trying to hide
on its "Visible" property write
VarHide
On the Text property of button,
If(VarHide=true,"Hide","Show")
Please Accept as Solution if it solves your question Or just give it a Thumbs Up if it is helpful because this can help others.
LinkedIn: https://www.linkedin.com/in/manan-malhotra-vfx/
Want to support me! Buy me a Cup of Coffee?
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473