Pass HTML code to HTML Box dynamically

Here’s example code inn database collection that I want to pass: field name url for storing html codes that I would pass to HTML Box on dynamic pages. But I don’t know why its not happening. So I am requesting that feature.

Code on Dynamic Page:

$w.onReady(function () { const itemUrl = $w('#dynamicDataset').getCurrentItem().url; $w("#html2").postMessage(itemUrl); }); 
1 Like