PowerApps Tip: Stop Double-Clicks

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)
Visible: !varLoad

Note: The visible attribute is set to Not(varLoad) so that the button can be visible by default without initializing the variable beforehand.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s