I need help trying to get this code to work correctly, I want users to be able to upload whatever they feel like uploading for a status for the social feed that I’m currently building, i have three items Photo, Link, and Text, here’s the code down below.
$w.onReady( () => {
$w("#dynamicDataset").onReady( () => {
let item = $w(“#dynamicDataset”).getCurrentItem();
if (item.image) {
$w("#text182").show();
$w("#image43").show();
} **else** {
$w("#box2").hide();
}
} );
} );
$w.onReady( () => {
$w("#dynamicDataset").onReady( () => {
let item = $w(“#dynamicDataset”).getCurrentItem();
if (item.box) {
$w("#text182").show();
$w("#image43").show();
$w("#box2").show();
} **else** {
}
} );
} );
$w.onReady( () => {
$w("#dynamicDataset").onReady( () => {
let item = $w(“#dynamicDataset”).getCurrentItem();
if (item.text) {
$w("#text182").show();
} **else** {
$w("#image43").hide();
$w("#box2").hide();
}
} );
} );