WindmillWWindmill
Powered by
Trevor SullivanT
Windmill•3y ago•
5 replies
Trevor Sullivan

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
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
button.result
, you could access
button.result.handler1
button.result.handler1
or
button.result.handler2
button.result.handler2
to get the results from each handler separately.

Any thoughts on this?
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Two or more event handlers of button
pixPpix / help
3y ago
Stepper Component Event Handlers
Joldz 🔮JJoldz 🔮 / help
17mo ago
How to trigger the 'On Error' event in a button?
hvglcsHhvglcs / help
3y ago
Uniqueness in user flow states for error handlers
ShenanigansSShenanigans / help
8mo ago