web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to reset value on ...
Power Apps
Unanswered

How to reset value on slider & text input

(0) ShareShare
ReportReport
Posted on by 327

Hi

 

How do I reset the value to "0" on the slider & text input when returning to the screen, I have a variable called sliderValue.

 

Onchange:

 

UpdateContext({sliderValue:Slider1.Value})

 

 

Plus icon:

 

UpdateContext({sliderValue: sliderValue + 1})

 

 

Thank you

Categories:
I have the same question (0)
  • Verified answer
    mmollet Profile Picture
    3,187 on at

    on that screen's onvisible property just add: UpdateContext({sliderValue: 0}); Reset(SliderName);

  • charlessexton Profile Picture
    Super User 2024 Season 1 on at

    In the screen's OnVisible property, set the variable to zero and reset your slider control: 

    UpdateContext({sliderValue: 0});
    Reset(Slider1);

     

  • moerah Profile Picture
    327 on at

    @mmollet thank you

  • charlessexton Profile Picture
    Super User 2024 Season 1 on at

    Bear in mind your slider will not reset with that solution.

  • mmollet Profile Picture
    3,187 on at

    I left out the reset as he/she mentioned resetting so I assumed that he/she had already added the reset function. I have ammended the solution to include this now. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard