I have a problem with showing and hiding icons.
I have a variable called EditRep. I have three icons i'm setting different visabilities and type of icon.
I have an Edit icon that has an OnSelect value of
UpdateContext({EditRep: !EditRep})On the type of Icon I have the following
If(EditRep, Icon.Cancel, Icon.Edit)
I have a delete icon with the visibility set to
EditRep
I have a save icon with the visiblity set to
DeleteIco.Visible
My issue is when the powerapps page loads, both delete and save show and the edit/cancel icon is set to edit. It's like EditRep is set to true for the save and delete but false for the edit/cancel icon.
I do have a couple other UpdateContext in the form to set the values back to false, but those are on the delete OnSelect and Save OnSelect. Should I change those to !EditRep instead of false?