I needed the Expression element from the original Toolbox plugin to return more stuff. That's what this plugin does.
Add the Expression+SProMaxPremium Element to your Bubble app, run a JS snippet in it, return an object and access the results as states on the element.
Free
For everyone
stars • 0 ratings
187 installs
This plugin does not collect or track your personal data.
1. Insert the Expression+SProMaxPremiumSuperAwesomeness element into your Bubble app
2. Assign the expected result data types and mark which one of them are expected to be lists. Ones that are not defined here will be ignored.
3. Now insert a Javascript expression into the element and make sure it returns a JSON with the following format:
Here, the field names 'res1', 'res2', etc should be kept the same. The values assigned to them can be the resulting values from your expression/script.
In case you are only returning 2 values (a text and a number) for example, you can return something like this:
{ "res1": 4, "res2":"my_result_text" }
And you will be able to access these via the element's states (Expression...'s Result1 and Expression...'s Result2).
It's exactly like the Toolbox plugin's Expression element, except it's on steroids.
Types
This plugin can be found under the following types: