Next/previous dropdown value with button click?

This is because at the moment, you can’t target a given Dash component as “Output” via more than one input/callbacks. When you try to run your sample code, you should see this error message on page load:

In the callback for output(s):
text.children
Output 0 (text.children) is already in use.
Any given output can only have one callback that sets it.
To resolve this situation, try combining these into
one callback function, distinguishing the trigger
by using dash.callback_context if necessary.

To get around this, you can either use the “multiple inputs” approach documented here: Part 2. Basic Callbacks | Dash for Python Documentation | Plotly

Or take a look at this work from Emil: Multiple callbacks for an output - #4 by DeejL

1 Like