I have the below code, but it does not work…I am trying to get rgba color code from my database. the database field type is text and color code is “rgba(255,0,0,0.5)”
$w.onReady( function () {
$w( "#dynamicDataset" ).onReady( () => {
let currentItem = $w( “#dynamicDataset” ).getCurrentItem();
let bgColor = $w( “#box2” ).style.backgroundColor
$w( "#box2" ).style.bgColor = {
“bgColor1” : currentItem.backgroundColor,
“description” : currentItem.location,
};
});
});