Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

How to reset value on slider & text input

(0) ShareShare
ReportReport
Posted on by 323

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:
  • mmollet Profile Picture
    3,187 on at
    Re: How to reset value on slider & text input

    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. 

  • charlessexton Profile Picture
    878 on at
    Re: How to reset value on slider & text input

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

  • moerah Profile Picture
    323 on at
    Re: How to reset value on slider & text input

    @mmollet thank you

  • charlessexton Profile Picture
    878 on at
    Re: How to reset value on slider & text input

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

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

     

  • Verified answer
    mmollet Profile Picture
    3,187 on at
    Re: How to reset value on slider & text input

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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard