web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Button should be press...
Power Apps
Answered

Button should be pressed, disabled during action taken place and enables again

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey guys,

I've got a question about the buttons.

If I press the buttons too fast, then my app behaves strangely and not the way I'd like to.

What I'd like to achieve is following:

 

If I press the button, then an action takes place (OnSelect) - during this action the button should be disabled so that the user can't click over and over again. After the action will have taken place (at the end of the action), the button should be enabled again.

 

How to achieve this?

Thanks so much for helping!

Categories:
I have the same question (0)
  • Verified answer
    Joel CustomerEffective Profile Picture
    3,224 on at

    create a variable

    Set(varButtonDisplayMode,Edit) on visible of the form

     

    onsubmit of button before your command put a Set(varButtonDisplayMode,Disabled);

     

    set the DisplayMode property of the button to varButtonDisplayMode

     

    then after your command, put semicolon and Set(varButtonDisplayMode,Edit)

     

    if the action takes additional time to complete you could also use a timer control to wait a few seconds fore changing the variable back to edit

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard