Invoke Multiple Event Handlers From Button Click

Right now it's only possible to map a single event handler (script, inline script, or flow) from a Windmill app event (ie. button click). This feels a little restrictive to me. It would be awesome if multiple actions could be invoked from a handler, in parallel. This might be possible from a Flow, with a Run All Branches step, but it would feel more "native" to handle it directly from the designer UI. As far as capturing results from multiple handlers ... each handler could have a "name" property to register the results under separately. Instead of accessing button.result, you could access button.result.handler1 or button.result.handler2 to get the results from each handler separately. Any thoughts on this?
4 Replies
rubenf
rubenf2y ago
you can trigger multiple background scripts using "Trigger scripts on success" and toggle multiple targets
Trevor Sullivan
Trevor SullivanOP2y ago
Hmmm, I must have missed multiple targets
rubenf
rubenf2y ago
Look that menu in the button settings
Trevor Sullivan
Trevor SullivanOP2y ago
I see it now ... you're talking just toggling multiple runnables on success. Gotcha I wasn't sure if the inputs would get mapped to UI elements, the same way as the Click handler though.