You need something like this:
$w("#button1").onClick((event) => {
let value = $w("#input1").value;
if (value === "the 16 digit code") {
$w("#button2").show();
}
});
See the API documentation for the Button onClick() event handler, and for the Button show() function.
To learn about programming with Velo, read the following articles that will help you start working with Velo:
-
About Velo by Wix - what Velo is and what features it has.
-
Getting Started with Velo by Wix - step-by-step tutorial on how to start using Velo.
-
Onboarding to Velo by Wix - introduction to Velo with short tutorials.
-
Velo Examples - has many examples demonstrating a wide variety of features and techniques. Filter by “Beginner” to get started.