How to Clear Javascript to Bubble Value

I just started recently with the Javascript to Bubble element. In my attempt to clear the value, I couldn’t find any actions from the plugin that does this. The only solution was to use some javascript. In case anybody finds this help (ie: future me) use the below codes:

Clear Single Value Output

// Clear the value of the Javascript to Bubble element
bubble_fn_rgValue(null); // Replace "bubble_fn_rgValue" with your function's name

Clear List Value Output

bubble_fn_rgValue([]); // Clears the list
2 Likes

Pretty much how I do it. I don’t believe there’s any other way.

When storing values from J2B elelments I’ll usually send the results to states. This keeps things uniform for me.

1 Like