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 / How to stop a user cli...
Power Apps
Unanswered

How to stop a user clicking a button multiple times!

(0) ShareShare
ReportReport
Posted on by 87

Hello PA_Community! 
I could use help with this critical bug.

 

Essentially I built a warning screen, which pops up and has the save button on this screen!

 

This works perfectly, however,  when the user selects to save there is a slight delay before the warning screen disappears and this allows the user to click the save button again. 

 

This result is a bunch of duplicates being made!

 

Please help! how can I stop this????

The warning screen is a component with behaviour type buttons on them 

Categories:
  • mdatson Profile Picture
    41 on at

    Make your warning screen a popup within the screen the save button is contained.
    I have previously used a "popup" item which is just a group that contains an image with part transparency and an animation to emulate a loading screen this is all stored on the same screen the save button is located.
    set the Visible property of the "warning screen" to something like: 

    showPopup


    the onvisible of the screen should contain the following to ensure the "warning screen" isn't visible when the app starts: 

    UpdateContext({showPopup: false});


    on the save button should be setup like this:

    UpdateContext({showPopup: true});
    
    *insert you method of saving here;
    
    UpdateContext({showPopup: false});
    
    *if needed insert navigation here;

    this makes the warning screen immediately cover the screen, preventing buttons from being pressed until the save has been completed and once complete hides the warning screen. 

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard