I’ve been trying to get the following working for a while but couldn’t figure out the way to do it and didn’t find any help in the forum.
I’ve got a JSON object (using the JSON Machine plugin) that stores some data. In a workflow I’m listening for change events, and when this happens I have a Run Javascript element that calls 2 different JavaScript to Bubble functions (see picture below).
The elements that you can see on the left are Javascript to Bubble event for the 2 calls I’ve mentioned, and in each of this calls the first thing I have is a Run JavaScriptinstance to print a message, but only one is printed.
Hi! Yes, it’s very much possible to do that. Can you show the editor of your 2 JS2B elements? Generally when I’m copying them, I forget to change the function name which is why it doesn’t work for me sometimes haha but we can take a look
Thank you guys! I really missed that one. I didn’t expect the checkboxes to be unchecked since I had copy pasted the first bubble element and I had them checked. Anyway, thanks again!
No worries
Also check out Javascript to Bubble - Toolbox docs to return multiple outputs using the same JS2B element (I agree with what @ken1 has suggested - it’ll be cleaner and easier to maintain)