Forum Academy Marketplace Showcase Pricing Features

Plugins - event cannot access property

I am learning to use plugins. Below are the screenshots:


Page Load:

Clicking on button with action Bye:

The question is - why the property is first displayed normally and then undefined in the event?


When you create an action, it takes a separate set of inputs.

Interested in booking a 1-on-1 coaching session to help get you more fluent using the plugin builder.

Learn more

Need to have your database located in your region! Tired of struggling with Bubble or API’s? Need a little functionality that’s not available yet thru current market plugins? Experience your own bootcamp!

Are you ready to step-it-up or speed it along? Need some custom code or a plugin built? Contact me today to learn how to book a 1-on-1 session, get your plugin built, or yet freelance building support!

Office Hours:
Mon - Fri
9:00 AM - 5:00 PM

Send me a message today:
[email protected]

Well, in plain words both custom states and events are just JavaScript functions getting argument and returning values?

So the argument is not defined… Is there any way for variables living during the time of life of plugin/application?

No. Events aren’t passed value for whatever reason (this would be nice to see in the future)

instance.data.variableName

This is how you use the element to pass around variable values.

Otherwise all variables are scoped to the function in which they live.

You could also use window To pass data

These variables would live as long as the window is open

If you want variables that live longer, consider cookies.

1 Like