Code/Plugin Generator
Last updated
Last updated
The plugin generator requires access to the NoCodeFusion plugin. Install it here: https://bubble.io/plugin/nocodefusion-1726239801389x823004323962945500
The plugin has a bit of documentation embedded into it. The way it works is you can add a Custom Plugin Element to your page, then add the code generated by the Plugin Generator.
If your plugin requires a custom output, actions, or events, here is how to handle all of those:
EVENTS: There is a catch-all event called “Element Event.” You can simply add a conditional to the event for “This plugin’s Event Triggered equals {event_name}”. The plugin generator should tell you all of the available event names.
ACTIONS: Similarly, there is a catch-all action called “Action a plugin…” Simply add the action name that the plugin generator is using, then you can pass up to 6 parameters.
OUTPUT: We added an easier way to work with JSON in general. Add an API connector parent called something like “JSON Outputs” to hold all of your custom JSON. Add a new call and manually edit it’s response. Simply add the JSON here, save, and make sure your types are correct. No need to add any URL or anything to the API call. Make sure to name it something relevant to what it is. Then, you can use this API call as your output data source in the plugin.
There is another element called JSON Converter which can also do this, as an easier way to work with JSON in general. Just add your output JSON type, and the JSON text you enter into it will be converted so you can use it in your Bubble logic.
There is also an in-built type called “Flat JSON” from the plugin. This will essentially flatten a JSON object to a standardized array of objects that represent key/value pairs in your JSON object. This is another way to work with JSON in Bubble, as it standardizes any JSON object (which Bubble likes), however it’s a little more complicated.
The plugin generator still ideally requires a bit of coding knowledge in case things don’t quite work as expected.
Debugging:
The plugin generator may output outdated javascript libraries, so this would be the first thing to check if your plugin doesn’t seem to work.
You can check in debug mode for any errors and simply pass these along in the chat.