Super simple input check not possible?

Hello guys, i just want to set up this in the simplest way but several paid “experts” said twice they could not do it because Wix does not allow. I can not believe this simple thing can not be done in Wix, please check:

  • One input field where the user writes a number.
  • If the number is correct, then a picture with a prize is displayed
  • If incorrect, a different picture with a “fail” message is displayed

That’s all, so difficult?

best

Why not?

let prizeNum= 7;//for example
$w.onReady(() => {
$w('#input1').onInput(({target}) => {
$w('#image1').src = target.value === prizeNum.toString() ? 'https://prize-image-url.jpg' : 'https://fail.image.url.jpg';
})
})

Omg, thank you, ill try to do it by myself, i posted in one of those platforms where you pay people to code, and awarded twice, none of them could do it.