Hi everyone,
Today we’re excited to launch a new feature that should improve modularity on Bubble, thereby making it faster and more productive to use our language – multiple parameters on custom events! Shoutout to @alex.stanescu for building this out!
Previously, you could only define one parameter (type of thing) on custom events. With this new feature, you’ll be able to define multiple parameters using a name and data type, similar to how you define parameters in API workflows, on both page and backend custom events. In addition, you can specify whether the parameter is a list/array or optional. To learn more about this feature, please refer to our documentation here.
You’ll then be able to use these parameters as data sources in the custom event’s actions.
When you use actions that include custom events, you will be able to specify the data that gets passed through the event as a parameter.
This feature should be helpful in allowing you to use multiple parameters to edit elements, rather than using workarounds like custom states. Further, multiple parameters are no longer limited to API workflows (which are only included on paid plans and run async)! We hope multiple parameters on custom events unlock more powerful capabilities for our users, from beginners starting on our free plan to experts navigating through complex functionality 🙂
Looking forward to hearing your feedback on this new feature!