I’m using an HTML element with some javascript and I want to export a variable to Bubble in order to display it in a chart. I looked at the “JavascripttoBubble” element from the Toolbox plugin which seems to work just fine in most cases.
However, in one of my page, I’m hitting a “Uncaught ReferenceError: bubble_fn_points is not defined”, and I can’t get my head around the problem.
Javascript code purpose: load google maps and display data in it.
I tried to reproduce the error for 2 hours by adding one element at a time in a new HTML element, but no chance…
I also tried to put another HTML element in the page to set the variable like the following “bubble_fn_points(0);”… And it’s working… So maybe something is wrong with the HTML, but the code is working just fine.
I had a look at different threads in the Bubble Forum but it doesn’t solve the problem.
If someone has already faced the same weird behavior, I would appreciate any help.
Thanks for your quick reply
About the button, I was thinking about it, but the trigger of my “workflow” is a google maps listener in the javascript. I will try to link it to a button to see if it helps to make the bubble_fn_xxxx function accessible (But I’m not sure since I can access the fonction from another HTML element on the same page).
And I don’t think it’s the “Trigger event”. Already trigger this approach.
Let me do a bit more investigation / tests before posting back to the topic
By trying to create a demo app to give you access, I found a “solution”…
Noticed that I couldn’t reproduce the issue in a new app. By recreating the HTML/JavascripttoBubble elements, it “magically” solved the problem.
I’m putting some screenshots if this is helpful. Seems to be a weird bug…
I have the same problem. It re appears randomly. This is really concerning because many apps use this, and it seems like there is some incompatibility with the new responsive engine.