Scenario: You have a button in your PowerApp that uses a Patch function or calls a Flow
Issue: Some of your users are in the habit of double-clicking buttons and this causes the Patch or Flow to trigger multiple times.
Solution: It’s quite easy to remove the button after the first click by setting a variable before and after the Patch or Run function and setting the button’s visible property to that variable.
For example, the properties of the button would look as follows:
On Select: Set(varLoad,true) ; <Patch Function> ; Set(varLoad,false)
Note: The visible attribute is set to Not(varLoad) so that the button can be visible by default without initializing the variable beforehand.