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 / Slider or Number spinn...
Power Apps
Answered

Slider or Number spinner in Component's (UpdateContext)

(1) ShareShare
ReportReport
Posted on by 103

Hi all,


I want to build a Slider component with number spinner to change the sliders quantity. I can't figure it out how the use UpdateContext Function to change the Sliders value in the component.

 

The component view:

Aionik_0-1678366363947.png

 

Outside the component, I have successfully applied these steps:

 

Slider Control on Default

Value(AddMe)

+ OnSelect

UpdateContext ({AddMe:slRooms.Value-1})

- Controll

UpdateContext ({AddMe:Rooms.Value+1})

 

Now is the question, how to implement it as component?

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hey @Aionik 

     

    You can't use the UpdateContext function in components, but you can use Set - you should be able to manipulate a variable in the same way using that function, although it will be a global variable coped to the component.

     

    Cheers,

    Sancho

  • YoshiIsTesting Profile Picture
    36 on at
    Hello @Sancho

    i have the same problem with my slider(number) component. 





    after sliding my component to number 100 or 0 something happend (status of the document changed). After this i want that the slider component switch to number 50 the default number automatically) 
    I dont know how to do this. This is my script: 


    can u help me please?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard