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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Button delay

(0) ShareShare
ReportReport
Posted on by 297

Hi 

 

A slightly odd question but can you set the button to have a time delay? say 3 seconds after the click it carries out the function?

Categories:
I have the same question (0)
  • cdwhite Profile Picture
    1,067 Most Valuable Professional on at

    You can do this, with timer controls.

     

    in the OnSelect of your button, you’d need to set a variable:

     

    set(gvTimer, false);set(gvTimer, true)

     

    add gvTimer to the Start property of a timer control. set the duration of the timer to be 3000 - which is 3 seconds.

     

    you can then add some code to the OnTimerEnd property for it to run once the timer has been triggered and run

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Add a timer to the app, make it invisible, and set it to run for 3 seconds. Set the onSelect of the Button to start the timer. Set the OnTimerEnd of the timer to do what you want the button to do after 3 seconds.

  • Rajkumar_M Profile Picture
    3,741 Super User 2025 Season 2 on at

    Hi

    1. Insert a Timer control on the screen and make invisible.
    2. Set the Duration property of the Timer control to 3000 milliseconds (3 seconds).
    3. Set the Start property of the Timer control to a Boolean variable, say varStartTimer.
    4. On the OnSelect property of the button, set the varStartTimer variable to true.
    5. Add the function that you want to execute after the delay to the OnTimerEnd property of the Timer control.

     

    Thanks!

  • jsmith87 Profile Picture
    297 on at

    Hi 

     

    Is there a way to add this to my current syntax in my onselct property of the button?

     

    Clear(Data);
    ForAll(
    Gallery1.AllItems,
    Collect(
    Data,
    {
    Name: 'Company name',
    Miles: Long.Text,
    PCode:End.Text,
    EM:Subtitle1.Text

    }
    )
    )

     

    Basically i want the button to carry out the collection 4 seconds after clicking it? I'm not great with powerapps so any help would be great 

  • cdwhite Profile Picture
    1,067 Most Valuable Professional on at

    Yeah you can add that code to the OnTimerEnd property of a timer control. See the responses above for how to go about it 

     

     

    ------------------------------------------------------------------------------------------------------------------------------
    If I've answered your question, please mark your post as Solved. You can accept more than one post as a solution.

    If my response was a good one, please give it a Thumbs Up!

    Visit my blog: https://platformsofpower.net

  • jsmith87 Profile Picture
    297 on at

    Thank you, i managed to do step 1,2 and 3. Would you mind telling me how i'd add the varStartTimer to my syntax? i'm new to powerApps and struggle with expressions 

     

    Clear(Data);
    ForAll(
    Gallery1_1.AllItems,
    Collect(
    Data,
    {
    Name: 'Company name',
    Miles: Long.Text,
    PCode:End.Text,
    EM:Subtitle1.Text

    }
    )
    )

  • cdwhite Profile Picture
    1,067 Most Valuable Professional on at

    You would set your VarStartTimer in the OnSelect of your button. You’d then need to add varStartTimer to the ‘Start’ property of your timer control.

     

    this will enable the button to talk to the timer, to provide the delay that you’re after.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard