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 / Add a timing before an...
Power Apps
Answered

Add a timing before an action

(0) ShareShare
ReportReport
Posted on by 11

Hello Community,

 

I begin to create applications with power apps. I've a button on an application to save the data on a SharePoint List. When i push on this button, I save the data, a sentence is written, a group (circle and validation picture) appears and and I came back to the homepage. My problem is, it's too fast and I can't see the group appears. How can I add a delay before to came back to the homepage?

Actually, I have this Onselect formule :

SubmitForm(EditForm1_1);;
Notify( "Enregistrement réussi. Merci"; NotificationType.Success; 0 );;
UpdateContext({ showGroup: true });; 

 

Thanks 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Fred_68,

    Please try to add a Timer control in the home page and set its Duration to 5000, which means 5000 milliseconds (5 seconds).

    Set the Start property to the variable.

    StartTimer 

    Set the OnTimerEnd property to 

    Navigate(homepage);; Set(StartTimer, false)

    Set the following formula to the button OnSelect property:

    SubmitForm(EditForm1_1);;
    Notify( "Enregistrement réussi. Merci"; NotificationType.Success; 0 );;
    UpdateContext({ showGroup: true });;
    Set(StartTimer, true)

     

  • rswain Profile Picture
    173 on at
    To add a delay before going back to the homepage, you can use the Sleep function in Power Apps. Here's an updated version of your OnSelect formula that includes a delay of 2 seconds before navigating back to the homepage:
    
    SubmitForm(EditForm1_1);;
    Notify( "Enregistrement réussi. Merci"; NotificationType.Success; 0 );;
    UpdateContext({ showGroup: true });;
    Sleep(2000);; // Wait for 2 seconds
    Navigate(HomePage)
  • Fred_68 Profile Picture
    11 on at

    Thanks @rswain ,

     

    But when I used the Sleep function  there is an error (Function unknown or not taken into account)

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Fred_68,

    Could you please tell me that whether you like my solution or not?

    You don't want to add an extra Timer? You could make it invisble.

  • Fred_68 Profile Picture
    11 on at

    Hi,

    As I begin with PowerApps, I try the "easiest" soltion. Can you explain me how add the timer in the home page?

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Fred_68,

    To delay the time you navigate to the home page.

    The Duration of the Timer will help you delay 5 seconds so that the pop up group will display for 5 seconds, after the 5 secods ends, the Timer will navigate you to the Home page.

     

    It is not complex, just follow the steps I mentioned.

    EDIT: The Timer exist in the screen where you have your submit button, it is not in the home page.

    Set the following properties of the Timer as below:

    Duration property: 5000// which means 5000 milliseconds (5 seconds)
    
    Start property:StartTimer 
    
    OnTimerEnd property to:Navigate(homepage);; Set(StartTimer; false)

    Submit button OnSelect property:

    SubmitForm(EditForm1_1);;
    Notify( "Enregistrement réussi. Merci"; NotificationType.Success; 0 );;
    UpdateContext({ showGroup: true });;
    Set(StartTimer; true)
  • Fred_68 Profile Picture
    11 on at

    I add the timer, but where I add the start property? On the Action or OnTimeStart ?

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Fred_68,

    My mistake, the Timer does exist in the Home page. To make it UI-friendly, you could set its Visible as false to make it invisible.

     

    Start property is a property by Timer.

    vqiaqimsft_2-1680164250660.png

     

     

     

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard