I want an input text box where users enter a certain word
if the word is entered correctly, a pop up appears or they are redirected to another page.
I don’t want to add a submit button, I want the even to trigger by pressing the Enter key.
(is there a way to stop the spell check from underlining the words red? the keywords aren’t always actual words)
this is me testing things, didn’t work:
$w . onReady ( function () {
let z = $w ( “#inputbox” ). value ;
$w ( “#inputbox” ). onKeyPress ( async ( event ) => {
**if** ( event.key === "Enter" && z === "zex" )
{ $w ( ‘#button3’ ). hide ()}
});