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 / Hourglass after doing ...
Power Apps
Answered

Hourglass after doing an action

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Guys

Is there a way to show a Hourglass icon after doing some action such as "submit a form", to present some interaction with the end user?

Categories:
I have the same question (0)
  • myke_deabreu Profile Picture
    220 on at

    Hi ANdreVT,

     

    Yes there is - However, sometimes some actions like Submit form could happen fairly quickly and wont allow enough time. 

     

    However, to do what you want:

     

    1) Insert an Image that you want. (Some really cool ones here that can make your app look cool https://icons8.com/preloaders/)

     

    2) Before your Action like SubmitForm. Set a varible to true.

    ##SET is a Global Varible and UpdateContext is just for the Screen##

    (e.g. Set(var_showloading,true) or UpdateContext({var_showloading=true})

     

    3) Then set the varible back to false.

    (e.g. Set(var_showloading,false) or UpdateContext({var_showloading=false})

     

    4) On your Image "Visible" function just put your varible name into the formula bar.

    e.g. var_showloading

     

    Just remember the image will only be visible for as long as it takes to execute your formula(s). If its really quick you may not see the image.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @myke_deabreu 

    After a couple of times, I kinda got it following your instructions, but once I just started last week working with PowerApps, i frequently got lost.

    Here is the situation. I was able to steps 1 and 4. I got lost how to set up a Set a varible to true and after to set up a variable to false

    Let me give more context:

    In my case, after clicking on "Submit" icon, "I have set tup the "On Sucess" property in my form the following code #Notify("Data saved successfully", NotificationType.Success)#

     

    To achieve what I am expecting rergading setps 2 and 3, Do I need to provide the code bellow

    #Set(var_showloading,true);Set(var_showloading,false);Notify("Data saved successfully", NotificationType.Success)#

     

    Thanks for the help

     

     

     

     

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to display a Pre-load icon after you submit form data?

     

    Based on the needs that you mentioned, I think the Timer control could achieve your needs. Please take a try with the following workaround:

    Add a Timer control within the Edit screen of your app, set the Duration property to following:

    2000

    Set the Start property to following:

    IsStart

    Set the OnTimerEnd property to following:

    Set(var_showloading, false);
    Set(IsStart, false)

    Set the Visible property of the Timer control to following:

    false

    Set the OnSuccess property of the Edit form to following:

    Notify("Data saved successfully", NotificationType.Success);
    Set(var_showloading, true);
    Set(IsStart, true)

    Set the Visible property of the Hourglass Icon to following:

    var_showloading

    Please take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @v-xida-msft 

    It worked properly

     

    Thanks a lot

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Is the solution I provided above helpful in your scenario?

     

    If the solution I provided above helpful in your scenario, please consider go ahead to click "Accept as Solution" to identify my solution as helpful.

     

    Best regards,

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard