Multistage Form Auto Switch States

@russian-dima Sorry my coding skills are little to non I’m trying this code below but it seems far too simple, do I need an event handler?

$w( “#radioGroup1” ).onChange( (event) => {
$w( ‘#statebox1’ ).changeState( “stateboxFormState4” );
});