Is there a simple function that will allow buttons to be selected (like radio buttons) and deselected? The combination of buttons selected would then determine which scene is jumped to.
Here’s the JavaScript to detect if one of those radio buttons are selected:
var button1 = document.getElementById("button1");
var button2 = document.getElementById("button2");
if (button1.checked){
alert("radio1 selected");
}else if (button2.checked) {
alert("radio2 selected");
}
So using that, you can put in your Hype document scene api functions, like:
hypeDocument.showSceneNamed('Scene 2');
Putting it all together, you would need to run a function that does the ‘checking’ and make sure that the radio / input form you place on your Hype scene is within the inner HTML of a rectangle, and not in an HTML widget (which is insulated from the rest of the page + Hype’s JS function system).