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 / Powerapps Bi-Direction...
Power Apps
Answered

Powerapps Bi-Directional Slider and Text Input in Gallery

(0) ShareShare
ReportReport
Posted on by 13

Good Day

 

I'm trying to create a slider and text input in a Gallery that works bi-directonially.

I have tried the solution here and here. The problem with these is that the variable used will update all sliders and all text inputs, not just the one item of the Gallery that I want.

 

In the example below, I want to be able to set either the text input or the slider for each individual item.

At the moment, I've set the text input's default value to the Slider's value. This does update the text input when I move the slider. But if I want to set the Slider's default value to match the text input's value, then I get a circular reference error.

 

Adre_0-1681399723080.png

 

 

Any help would be appreciated.

 

Categories:
I have the same question (0)
  • Verified answer
    Adre Profile Picture
    13 on at

    I managed to solve this by using Collections.

     

    I changed the "OnChange" property of the slider to this:

    If(
     IsEmpty(
     Filter(
     MyCollection,
     ItemID = Gallery1.Selected.ID
     )
     ),
     Collect(
     MyCollection,
     {
     ItemID: Gallery1.Selected.ID,
     Quantity: Slider1.Value
     }
     ),
     UpdateIf(
     MyCollection,
     ItemID = Gallery1.Selected.ID,
     {Quantity: Slider1.Value}
     )
    )

     

    And then set the "Default" property of the Slider to this:

    LookUp(MyCollection, ItemID=ThisItem.ID, Quantity)

     

    And then did a similar thing for the TextInput - "OnChange" is this:

    If(
     IsEmpty(
     Filter(
     MyCollection,
     ItemID = Gallery1.Selected.ID
     )
     ),
     Collect(
     MyCollection,
     {
     ItemID: Gallery1.Selected.ID,
     Quantity: Value(TextInput1.Text)
     }
     ),
     UpdateIf(
     MyCollection,
     ItemID = Gallery1.Selected.ID,
     {Quantity: Value(TextInput1.Text)}
     )
    )

     

    And the "Default" property is this:

    LookUp(MyCollection, ItemID=ThisItem.ID, Quantity)

     

    Hope this helps someone.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard