Output from Javascript into Bubble

Hi All,

I wonder if anyone got a better idea to implement this.

I have a javascript running on the page via an expression element.
The script output 4 lists of numbers.
I have 4 JavascripttoBubble elements to take each of the list back to bubble.
image

Is it possible to use 1 JavascripttoBubble element to output the four lists as a dataype or json so that Bubble can access each of the list?

I imagine one element is much more efficient than 4.

Hey @phan.personal :wave:

You can send as many parameters as possible (ok at most 8 I guess) by using the following settings. See demo below:
brave_k0Ydn3XS0Q

You have to set the following parameters in JS2Bubble:

And you call the function like this:
image

bubble_fn_test1({output1:"a",output2:3,outputlist1:["a","b"]})

If you want to check the editor, here it is: Bubble Demos by Flusk | Bubble Editor

I hope this helps.

bdk_512x512 @Huseyin from Flusk | Discover the #1 Security and Monitoring Tool for Bubble

Awesome.

Thanks for this!

ps. will be using Flusk BTW when my app is completed.