Know which Input triggered a callback?

Hello guys, I’m wondering if would be possible to know which input triggered a callback which listens to different elements (i.e. button clicks, dropdown values, etc). More specifically I’d like to know if the button was the one.

Another way to put it is I need to compute something when a button is clicked, but for such computation I need information contained on other elements, so I need them as Inputs, but not for triggering the action.

Hi there,

Have a look here, under the " Determining which Input has fired with dash.callback_context" section.

1 Like