Hi, I’m currently using multistate boxes on two pages.
- To show the price change on different payment arrangement (i.e., monthly/annually) on a pricing page. This is the following code used -
" $w . onReady ( function () {
$w ( “#group64” ). onClick (() => {
$w ( ‘#insightstatebox’ ). changeState ( “YearlyID” );
} );
$w ( “#group59” ). onClick (() => {
$w ( ‘#insightstatebox’ ). changeState ( “MonthlyID” );
} );
}); "
and
- For a drop-down interaction on a separate page, using the following code -
" $w . onReady ( function () {
$w ( “#demobutton0” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “3dmodel” );
});
$w ( “#demobutton1” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “Demographics” );
});
$w ( “#3dbutton0” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “3dmodel” );
});
$w ( “#3dbutton1” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “API” );
});
$w ( “#3dbutton2” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “3dmodel” );
});
$w ( “#3dbutton3” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “3dmodel” );
});
$w ( “#apibutton0” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “API” );
});
$w ( “#apibutton1” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “API” );
});
$w ( “#apibutton3” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “API” );
});
$w ( “#analyticsbutton0” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “Analytics” );
});
$w ( “#apibutton2” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “Analytics” );
});
$w ( “#analyticsbutton1” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “Analytics” );
});
$w ( “#analyticsbutton2” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “Analytics” );
});
$w ( “#analyticsbutton3” ). onClick (() => {
$w ( “#insightstatebox” ). changeState ( “Demographics” );
});
})
Everything works as intended when viewed on preview mode, however, when viewing it via a live link, the interactions does not seem to work. Would really appreciate your help! Thanks in advance (: