cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MaxDonen
Level: Powered On

Sync multiple dropdowns so they all show the most recently selected value

Ok, hopefully this'll be a fairly simple one to resolve. 

 

I have 3 dropdowns in my app (Dropdown_1, Dropdown_2 and Dropdown_3). They are on different screens but show the same items (Let's call them A, B and C). I would like them to be set to the same value,  based on whichever one the user last selected. 

 

So when Dropdown_1 is set to value B, Dropdowns 2 and 3 are also automatically set to value B. 

And when Dropdown 3 is set to value C, Dropdowns 1 and 2 update to value C.

 

Trust this makes sense. There seems to be plenty of info regarding linear dropdown syncing (so Dropdown_1 could govern Dropdown_2's default value, for example), but for my application this needs to work both ways.

 

I couldn't get this to work without creating circular reference errors (I tried setting Dropdown_1 to 'Dropdown_2.Selected.Value' and vice versa, for example). This is understandable with this approach, but is there an alternative? 

 

Any help would be much appreciated-thank you. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Delid4ve
Level 10

Re: Sync multiple dropdowns so they all show the most recently selected value

So I would set 2 variables for the dropdown items/default (you can do this on the onstart of the app):

Set(ItemsVariable,ItemsForDropDown);
Set(SelectedVariable,"")

 Put the ItemsVariable variable in all the dropdown items properties

In the each of the dropdown onchange put (change name for each dropdown):

Set(SelectedVariable,Dropdownname.Selected.Value)

 In the dropdown default value fields put SelectedVariable

View solution in original post

2 REPLIES 2
Delid4ve
Level 10

Re: Sync multiple dropdowns so they all show the most recently selected value

So I would set 2 variables for the dropdown items/default (you can do this on the onstart of the app):

Set(ItemsVariable,ItemsForDropDown);
Set(SelectedVariable,"")

 Put the ItemsVariable variable in all the dropdown items properties

In the each of the dropdown onchange put (change name for each dropdown):

Set(SelectedVariable,Dropdownname.Selected.Value)

 In the dropdown default value fields put SelectedVariable

View solution in original post

MaxDonen
Level: Powered On

Re: Sync multiple dropdowns so they all show the most recently selected value

Great stuff-thanks for this 🙂

 

Helpful resources

Announcements
thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (5,325)