# Pattern-Matching Callbacks with differnet index

**URL:** <https://community.plotly.com/t/pattern-matching-callbacks-with-differnet-index/50807>\
**Category:** Dash Python\
**Created:** [March 9, 2021, 9:20am UTC](https://community.plotly.com/t/pattern-matching-callbacks-with-differnet-index/50807 "2021-03-09T09:20:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalt](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@kalt](https://community.plotly.com/u/kalt)\
**Post date:** [March 9, 2021, 9:20am UTC](https://community.plotly.com/t/pattern-matching-callbacks-with-differnet-index/50807/1 "2021-03-09T09:20:22Z")

</div>

Hello,

is there any way to combine different index in the pattern-matching callback to check which input was triggered? I have the follwing callback

```auto
Output({'type': 'output', 'index': MATCH}, "children"),
    [
        Input({'type': 'input_1', 'index': MATCH}, "value"),
        Input({'type': 'input_2', 'index': ALL}, "value"),
    ]

```

input\_1 and output have the same index and match together. However input\_2 has a different index. All I want in this case is to check if input\_2 is triggered. As far as I understand this does not work, because index\_2 differs from the output\_index. If input\_1 is triggered the callback works as it should, if input\_2 is triggered nothing happens.

Is there any workaround to combine different index in one callback?
