Hi JD, thank you for your reply. I couldn’t get it to work with your example, but managed to figure it out anyway. This is how I solved it;
$w.onReady(() => {
$w( “#mydynamicdatasetname” ).onReady(() => {
const item = $w( “#mydynamicdatasetname” ).getCurrentItem();
if (item.myfieldkeyname) {
$w( “#element1” ).expand();
$w(“#element2”).expand();
}
});
});
So now the dynamic page loads, looks if there is a value in “wyfieldkeyname”. If there is, it shows element 1 and 2 on this page.
A very important thing to keep in mind that for this to work, the elements both have to be marked as “collapsed” in the Deafult Values pannel .