Here is my code. An artist can submit one to three pieces to an art show. Depending on their choice they get the opportunity to submit a details on each piece. The elements are grouped and all hidden and collapsed. The change function does not work. I am a bit flummoxed by the language as there seems to be multiple ways to address this: I have seen the dropdown.value used as well as event.target.value..... Thank you for helping!
$w.onReady(function () { $w('#group6').hide(); $w('#group6').collapse(); $w('#group7').hide(); $w('#group7').collapse(); $w('#group8').hide(); $w('#group8').collapse(); }); export function dropdown2_change(event) { if ($w('#dropdown2').value === "1") { $w('#group8').show(); $w('#group8').expand(); } else if ($w('#dropdown2').value === "2") { $w('#group8').show(); $w('#group8').expand(); $w('#group6').show(); $w('#group6').expand(); } else if (event.target.value === "3") { $w('#group8').show(); $w('#group8').expand(); $w('#group6').show(); $w('#group6').expand(); $w('#group7').show(); $w('#group7').expand(); } }