# Synced Dash Components with Pattern Matching

**URL:** <https://community.plotly.com/t/synced-dash-components-with-pattern-matching/87711>\
**Category:** Dash Python\
**Tags:** question\
**Created:** [October 3, 2024, 3:17am UTC](https://community.plotly.com/t/synced-dash-components-with-pattern-matching/87711 "2024-10-03T03:17:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drii](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@Drii](https://community.plotly.com/u/Drii)\
**Post date:** [October 3, 2024, 3:17am UTC](https://community.plotly.com/t/synced-dash-components-with-pattern-matching/87711/1 "2024-10-03T03:17:35Z")

</div>

Hi there,

Is there an example that demonstrates two dropdowns synced using Pattern Matching? Taking [this](https://dash-example-index.herokuapp.com/pattern-match) page as a reference, I would like to create two cards such that when I change one of the dropdowns within the cards, all other dropdowns also get updated.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/1/4/1403392e8aef1b50ac4c7bc48be1450b93f60185.png)

Thank you so much!

---

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [October 3, 2024, 7:44am UTC](https://community.plotly.com/t/synced-dash-components-with-pattern-matching/87711/2 "2024-10-03T07:44:08Z")

</div>

Hey @Drii!

I guess you’d want to create the cards dynamically, right? If this was the case, I think you would have to do something like discussed here:

> [@Sub-indexing pattern matching callbacks](https://community.plotly.com/t/sub-indexing-pattern-matching-callbacks/80573):
>
> Hello! I have an indexing-related question for pattern-matching callbacks. Is there a way to create a sub-index for components? I have dynamic cards triggered by a button (“Add an Audience Attribute”) which sets the index of the card and all it’s components to n\_clicks of this button. This card has a dynamic button (“Search All Questions”) that triggers a dropdown. Currently, due to indexing issues I limit n\_clicks …
