Hi there,
I'm trying to get this expandable and collapsible multi-state box to work. I followed the corvid instructions, and I can't figure out why it won't work.
Here's the code I'm using:
$w.onReady(function () { $w("#readMoreButton").onClick(() => { $w('#readMoreStatebox').changeState("#readlessState"); }); $w("#readLessButton").onClick(() => { $w('#readMoreStatebox').changeState("#collapsedState"); } ); });
![](https://static.wixstatic.com/media/a27d24_49f2425758434d92aacc6c34dbf27387~mv2.png/v1/fill/w_49,h_49,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/a27d24_49f2425758434d92aacc6c34dbf27387~mv2.png)
![](https://static.wixstatic.com/media/a27d24_2dff1fad387e4342bb6ce115acf024ed~mv2.png/v1/fill/w_49,h_56,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/a27d24_2dff1fad387e4342bb6ce115acf024ed~mv2.png)
Thank you!
Shannon
the state's name shouldn't have an hashtag preceding it. Just readlessState instead of #readlessState.
Here's another view of the collapsedState that shows the properties.