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,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 2d ago

rubenf

Infrastructure as code

rubenf · 3w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

Two or more event handlers of button
pixPpix / help
3y ago
Stepper Component Event Handlers
Joldz 🔮JJoldz 🔮 / help
2y 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
9mo ago