top of page

T

Error, try again!

Done

Successful!

Password: hi

The code

import wixData from "wix-data";

 

$w.onReady(function() {

//make sure your input is empty on load

$w("#input4").value = ""

})

 

export function button3_click(event){

//when button is clicked

if ($w("#input4").value === "hi"){

//if input value is "hi" show/hide these elements

//change the input value and which elements to hide to fit your needs

$w("#text16").show();

$w("#input4").hide();

$w("#button3").hide();

$w("#text15").hide();

$w("#text17").hide();

$w("#button4").show();

} else {

//show/hide these elements if user types anything else than "hi"

$w("#text15").show();

$w("#text17").hide();

}

}

or

© 2022 Technical Thinking.

bottom of page