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 do I hide spinner ...
Power Apps
Suggested Answer

How do I hide spinner when a form populates?

(1) ShareShare
ReportReport
Posted on by 831 Moderator
When a user selects a gallery item it sometimes takes a little while for the form to populate. Even then, there are situations where the form updates only a small amount of data but it is not apparent that anything changed. What I am attempting to do is show a spinner when the gallery item is selected and hide that spinner when the form full populates. Here is what I have so far.
 
  1.  I set a context variable to true when a gallery item is selected - (UpdateContext({varShowRetrieveSpinner: true}).
  2. I set the spinner's Visible property too varShowRetrieveSpinner
  3.  ??? I need to set varShowRetrieveSpinner to false when the record loads into the form.
How do I do this?
Categories:
I have the same question (0)
  • Suggested answer
    SaiRT14 Profile Picture
    1,992 Super User 2025 Season 1 on at

    Pls try the following:
     
    Gallery OnSelect: UpdateContext({ varShowRetrieveSpinner: true });
     
    Spinner Visible: varShowRetrieveSpinner
     
    Form OnSuccess: UpdateContext({ varShowRetrieveSpinner: false });
     
    Form OnFailure:  
    UpdateContext({ varShowRetrieveSpinner: false });
    Notify("Failed to load the record.", NotificationType.Error);
     
    let me know if you need more details.  Thankz
  • Suggested answer
    jpespena Profile Picture
    335 on at
    Hi,
     
    Can you try putting the UpdateContext on the OnChange property of the last field of the form?
  • futr_vision Profile Picture
    831 Moderator on at
     
    I tried that with a field I knew would change when a new gallery item was selected. It happens to be one of the last fields. It didn't change the variable.
     
    That doesn't work. Selecting a gallery item is not the same as submitting a form where the OnSuccess or OnFailure would be triggered.
  • Suggested answer
    jpespena Profile Picture
    335 on at
    Hi,
     
    I would suggest to add a timer control and set its time to the average duration when your form loads and at the end of the timer, set the UpdateContext to false.
     
     
  • CA1105 Profile Picture
    545 Moderator on at
    In my opinon I guess you could only use the timer control.
  • futr_vision Profile Picture
    831 Moderator on at
    That is what I did. I added a timer with a 1 second run time. I set the spinner's Visible property to 'true' when a record was clicked. That also started the timer which sets the variable back to 'false' OnTimerEnd. It's not perfect, since part of the form updates nearly instantaneously before the timer kicks off, but it is good enough.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard