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

@phil18799

…radio option 1 does nothing…
stateboxFormState0
stateboxFormState1
stateboxFormState2
stateboxFormState3
Radio-Option1 does nothing because the index starts with —> 0
And you surely do NOT have —> “stateboxFormState0”

You should read my posts more carefully.

You have two options to solve it.

  1. Change your state-IDs (from 0)
2) change your CODE ---> $w('#statebox1').changeState("stateboxFormState"+selectedIndex+1);

Now it would start with —> 1 and not with 0.

So if I go to option 2 & try radiogroup2 it then also works the same way but doesn’t submit that data to the submission table.
Where is your submission-code-part for submitting something somewhere?
I do not see this code-part .
Perhaps you should show your form and describe what & how exactly should work your form.