Multi-state box performance issue

Hi all,

I have set up 6 different multi-state boxes. However, my last “read more” button isn’t working. Below is the code used, having made sure that the button and state IDs have been named correctly. It’s telling me the following, when I test state 6 on preview

"Wix code SDK error: The “stateInfo” parameter that is passed to the “changeState” method cannot be set to the value expandedState6. It must be a state or a state ID from the “comp-kkpcvcxh” state box

Grading
Line 33

The “stateInfo” parameter that is passed to the “changeState” method cannot be set to the value expandedState6. It must be a state or a state ID from the “ReadMoreStateBox6” state box"

$w.onReady( function () {
$w( “#ReadMoreButton” ).onClick(() => {
$w( “#ReadMoreStateBox” ).changeState( “expandedState” );
});
$w( “#ReadLessButton” ).onClick(() => {
$w( “#ReadMoreStateBox” ).changeState( “CollapsedState” );
});
$w( “#ReadMoreButton2” ).onClick(() => {
$w( “#ReadMoreStateBox2” ).changeState( “expandedState2” );
});
$w( “#ReadLessButton2” ).onClick(() => {
$w( “#ReadMoreStateBox2” ).changeState( “CollapsedState2” );
});
$w( “#ReadMoreButton3” ).onClick(() => {
$w( “#ReadMoreStateBox3” ).changeState( “expandedState3” );
});
$w( “#ReadLessButton3” ).onClick(() => {
$w( “#ReadMoreStateBox3” ).changeState( “CollapsedState3” );
});
$w( “#ReadMoreButton4” ).onClick(() => {
$w( “#ReadMoreStateBox4” ).changeState( “expandedState4” );
});
$w( “#ReadLessButton4” ).onClick(() => {
$w( “#ReadMoreStateBox4” ).changeState( “CollapsedState4” );
});
$w( “#ReadMoreButton5” ).onClick(() => {
$w( “#ReadMoreStateBox5” ).changeState( “expandedState5” );
});
$w( “#ReadLessButton5” ).onClick(() => {
$w( “#ReadMoreStateBox5” ).changeState( “CollapsedState5” );
});
$w( “#ReadMoreButton6” ).onClick(() => {
$w( “#ReadMoreStateBox6” ).changeState( “expandedState6” );
});
$w( “#ReadLessButton6” ).onClick(() => {
$w( “#ReadMoreStateBox6” ).changeState( “CollapsedState6” );
});
});

Please post the URL to your site and explain how to reproduce the problem.

Hi Yisrael, I have since changed the name of the statebox ID, which has now allowed it to work (odd). But thanks anyway.

This case has now be solved.