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 within Gallery ...
Power Apps
Unanswered

Slider within Gallery flickers when patching value to collection

(0) ShareShare
ReportReport
Posted on by 2

Hello

 

I have a slider in a gallery that patches its value (1-10) to a collection. Each row in the collection has a slider value. Here is the OnChange formula for the slider:

 

 

Patch(
 LocalCollection,
 LookUp(LocalCollection, name = ThisItem.name && type = "range"),
 {
 SliderValue: Slider2.Value,
 validations: Patch(
 LookUp(LocalCollection, name = ThisItem.name).validations,
 {
 optionValues: Split(TextInput2.Text, ","),
 regex: TextInput1.Text
 }
 ),
 localeText: Patch(
 LookUp(LocalCollection, name = ThisItem.name).localeText,
 {
 en: Patch(
 LookUp(LocalCollection, name = ThisItem.name).localeText.en,
 {
 optionsText: TextInput3.Text
 }
 )
 }
 )
 }
);

 

Attached is a video of what happens when I change the slider and the value is patched. Is there any way to remedy this visual tick? Has anyone seen this before?

 

Thanks

 

GotYah!

Categories:
  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    Hi,

    This is because when you patch a datasource on triggering onchange, if the gallery use this datasource, it will refresh, so the components goes to default value then retrieve their current value, and trigger the onchange, so you get a endless refreshing loop.

    To make it works, I use a collection instead of using the datasource as my gallery items (the collection is a clone of the datasource of course).

    Then, when my control value change, I patch the datasource and not the collection, but since the gallery is refering the collection I don't get a loop.

    And since the control triggers the update, the front-end is already up-to-date

    Regards,

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard