Need help with Wix Query for quiz

@jaxfjord
Of course it is possible.

The question is, why you want to redirect to another site?
Why not use a Multi-State-Box or something like that?

What you will need to create your wished quiz…

  1. 1xBox (the element where you put all your other elements into).
  2. 1xTextBox (The text which includes your question).
  3. 1xInput-Field (The input-box where you will type in your values) → #input1
  4. 1xButton (Submit-Button) —> '#button1

And of course some CODE…

In a very simple example…

$w.onItemReady(()=>{
	$w('#button1').onClick(()=>{
		if($w('#input1').value === "test") {console.log("right answer")}
		else{console.log("wrong answer")}
	});
});