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 / OnReset event in Compo...
Power Apps
Unanswered

OnReset event in Components is not firing

(3) ShareShare
ReportReport
Posted on by 66

Suddenly all of my components which rely on the OnReset function are not working properly.  I know there was a new feature added to have the component access the App Scope but I didn't see anything related to this impacting the OnReset function.  All of my other components which do not rely on the OnReset function are working properly.  Does anyone have any guidance in this area?

Categories:
I have the same question (0)
  • londontoholland Profile Picture
    37 on at

    Yep, I'm having the exact same issue. With the App Scope switched on, it seems that component's OnReset function isn't firing. 

     

    Does anyone know when this will be fixed?

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    I see this issue as well. 

  • MiLoCore Profile Picture
    62 on at

    Yes same issue as well.
    Are there any news about this?

  • arpost Profile Picture
    466 on at

    Also experiencing this! Anyone have an update on a fix?

  • Marc Villeneuve Profile Picture
    12 on at

    I've encountered this issue as well while designing a left navigation component. When expanding the menu then clicking on a button on screen that was not in the component to navigate to another screen and then coming back to the screen with the menu, it remained open. I tried to use the OnVisible property of my screen to reset my component (i.e.: Reset(component_name)) but its OnReset property did not fire thus not resetting the collapse variable, the only way I found to get it to reset was to put a timer in my component and have it set the variable to collapse the menu as it loads. It's not pretty, and definitely not ideal but it a pinch, it will work until this bug is fixed.

  • GabrielShaked Profile Picture
    7 on at

    Hi Everyone,

     

    i had the same issue with the OnReset control. 

     

    I just did a workaround and put the OnReset in a Timer in the Component. 

     

    1. Add a Timer in the component (Start: 'varOnReset' OnTimerStart: Code of OnReset)

    2. whenever you want to Trigger OnReset: Set(varOnReset,false);Set(varOnReset,true)

     

    I always have the false and then true pair to make sure it triggers the timer.

     

    Hope that helps.

     

    Cheers,

    G

  • james_hathaway Profile Picture
    427 on at

    I am also experiencing this bug - calling Reset(component_name) from outside the component does nothing, while Calling Reset from within the Component seems to work just fine...

     

    I also tried creating a boolean input parameter called "Reset" and ticked the "Raise On Reset when this value changes". When I put my component into an App, I give the Reset property a variable varResetComponent.

    I then used Set(varResetComponent,false);Set(varResetComponent,true).

    Nothing.

    So the "Raise On Reset when value changes" doesn't work properly either - at least not if you change the value and then change it back immediately... (I have a feeling the compiler actually filters this type of stuff out!)

     

    Adding a Timer inside my component doesn't work either - even when I try to change the value of the Timer Start variable, the timer just doesn't actually start.

     

    Anyone else find a workaround to this bug?
    Is there any news from Microsoft about fixing the bug?

    @CarlosFigueira - I notice that you have worked on this very issue in the past - do you know anything about why OnReset doesn't work when called from outside an instance of a component?

     

    James.

  • GSH1 Profile Picture
    2 on at

    do you have "Access App Scope" On? when using the timer trigger. (I would create a visual on the timer to see if it acutally goes off)

    GSH1_0-1675888776033.png

     

    I think that is also the reason why OnReset control doesn't work anymore....

  • james_hathaway Profile Picture
    427 on at

    Well, interestingly, I don't actually have that "App Scope" option at all... it simply doesn't exist in the version of PowerApps studio I'm using...

     

    James.

  • GabrielShaked Profile Picture
    7 on at

    Have you Updated Power Apps?

    in the admin Center:

    1. Go https://admin.powerplatform.microsoft.com/

    2. Select your environment

    3. there you can look for updates

     

    I would just do it over night, so no one is really affected. 

    Let me know if that worked for you.

     

    cheers,

    Gabriel

     

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