switch "on" then visible

Hi,

I’m not very familiar with codes but I’ll definitely try my best :wink:

I have a switch and when it is “on” I want to have and keep a group visible. Now I manage to make the group visible, but when the formula is saved and I look in the dynamic page I see that the switch is “on” but I don’t see the group open… This is the code that I use

Code:
export function switch3_click ( event ) {
if ( $w ( ‘#switch3’ ). checked ) {
$w ( ‘#group2’ ). expand ();
} else {
$w ( ‘#group2’ ). collapse ();
}
}

Please explain the “but when the formula is saved and I look in the dynamic page” in more details.

Hi,

after saving i see this

when I leave the page and come back later I see this


I don’t see the row “Aangeleverd aan …?”

and that’s exactly what I want to see, even when I leave the page and come back later