How to pass data across function in Bubble plugin?

How to pass data across function in Bubble plugin?

Play this article

There are times when you need to pass data between different functions while building a client-side plugin in Bubble. However, there is no native method to accomplish this. One approach is to expose the data and request that user send it as input. This is arguably the worst solution from the user's perspective.

So, what should you do instead? Define a temporary variable.

It's better to define it within the "initialize" function.

//define the variable
instance.data.my_variable= "this is sample Data";

Now you can use the "instance.data.my_variable" anywhere in the client side function.


That's all for this blog. Subscribe for more future updates. Thank you!

Follow me on Twitter.

Checkout My Bubble Plugin Course - Use coupon code "THEBUBBLEGROUP" at checkout for 10% discount.