How can I save answers to questions on multi-state form using this code?

I thought, that i already showed you how to manage this problem last time :sweat_smile:

This is what you will need…

$w.onReady(function () {
   $w("#radioGroup1").onChange(()=>{
      let selectedIndex = $w("#radioGroup1").selectedIndex
      console.log("Selected-Index: ", selectedIndex)
      {$w('#statebox1').changeState("stateboxFormState"+selectedIndex);}
   });
});

Every-time you make a choice on the radio-button-group, you also change the —> INDEX!
Index-0
Index-1
Index-2
Index-3
…and so on…

That means —> you also should have the related STATES in your state-box…

stateboxFormState0
stateboxFormState1
stateboxFormState2
stateboxFormState3
....and so on .....