Power Apps- Disable button for 3 second after clicked and display notification to prevent multi-clicks

I don't know why but this was extremely difficult to find on the web.

This is how to add a button to a Power App that will disable after clicked, display a notification, and then re-enable after three seconds.

 

 

1. Add the timer control to your app

In the Timer control's Properties put the following:

AutoStart : ButtonTimer
Duration: 3000 
OnTimerStart: Set(VarVisible,DisplayMode.Disabled)
OnTimerEnd: Set(VarVisible,DisplayMode.Edit)
Visible: false

 

 

2. Add button and add this to the properties

 

OnSelect: 

 Set(ButtonTimer,true);

 Notify("Your Teacher by Manager file is on the way! Check your email.",NotificationType.Success, 6000);

Set(ButtonTimer,false);

 

DisplayMode: VarVisible

heart

Blog Type: