Forum Academy Marketplace Showcase Pricing Features

Issues with generating HTML hyperlinks using Toolbox - Run Javascript

Hello,

I have an Object defined by a title and a list a links, for each Object i need to generate the html hyperlink of the associated links, like so : <a href="link1">Title1</a><br/><a href="link2">Title2</a>. A link is a thing defined with a title and an url.

The object is identified by a parameter (obj) in the page url, like so : https://generate-html-external-links.bubbleapps.io/version-test/new?debug_mode=true&obj=1635870402948x702401619816011900
In order to generate these html tags, i use the Run Javascript module from the Toolbox pluggin :

My Javascript To Bubble function is defined like so :


And it is returning an empty value, does any of you have a idea of what did do wrong ?

I have tested my code in codepen and it is working just like I want : https://codepen.io/motheguy/pen/qBXOXqe
A simple model of the issue is available here : http://generate-html-external-links.bubbleapps.io/version-test/

Thanks in advance