Hi
I have a gallery and when user click on the record it will display the form which is set at variable - varshowform

I have a button for patch which I need to set to show the form and the button or hide. - varLetEidt when it's click on the edit to show the button and the form
How to hide and show the patch icon only when the pen edit is click?
I put in Pen ICon - Set(varFormMode,FormMode.Edit); UpdateContext( { PenEdit: true })
Patch button - visible - varshowform & varLetEdit
Thanks.
??