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 / Loading spinner screen...
Power Apps
Answered

Loading spinner screen error

(0) ShareShare
ReportReport
Posted on by 825

Hi All, 

 

Im trying to use loading spinner as we all know UI and UX has its own impact on customer when it comes to using an application, however, i was following a blog by one of the expert, but while i try to do the same it shows me error, Does any one know why ?

 

Here is Formula, 

 

Note i want to use loading spinner when the data is loading, 

 

Onscreen: Testing 

Visible property: Set(AllRecords, Pettycash) Where petty cash is may Splist name which holds all the records

On Gallary :

Visible Property: All records

On Form: 

Visbile: All records

 

I dont know what im doing wrong. 

This below article is what im trying follow,

 

https://www.eliostruyf.com/showing-a-spinner-when-loading-data-in-powerapps/

any help is appreciated please 

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Tapesh 

    With respect, you haven't followed the article correctly. You shouldn't be putting code on the Visible property of you Gallery but on the Visible property of your spinner.

     

    Something like this on the Visible property of your spinner should work

     

    CountRows(Gallery1.AllItems)<1

     

    You could try changing <1 to <20 or <50 if you wanted a longer spinner time.

  • Tapesh Profile Picture
    825 on at

    Thanks let me give a try and see if that works sir 

  • Tapesh Profile Picture
    825 on at

    Yes this did work @Anonymous 

     

    But i want the user to see the spinner for 5 seconds more even after the data is loaded. 

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

    @Tapesh 

    You can do this with a Timer control.

     

    On your Testing screen, add a Timer control and it's various properties to the following:

     

    Timer1.AutoStart = startTimer

    Timer1.Duration = 5000 (change this to suit your needs eg if you want 10sec use 10,000)

    Timer1.Reset = true

     

    Timer1.OnTimerEnd

    UpdateContext(
     {
     spinner: false,
     startTimer: false
     }
    )

     

    Timer1.OnTimerStart

    UpdateContext({spinner: true})

     

    Timer1.Visible = true, but set this to false when you have it working

     

    Add this code to the OnVisible of your Testing screen:

    UpdateContext({startTimer: true})

     

    Set your Spinner Visible property to

    Spinner.Visible = spinner

     

    This should work, let me know how you get on.

     

     

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 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard