Set the validation state of a text input

Use if-else-combination.

if (i was young again === true) {i would change some parts of my life}

if ( ) {   }
if ($w('#myInputField').value === "TEXT") { 
    $w('#myBOX').expand()
    $w('#myBOX').show() 
    $w('#myTextBox').text = "Congratulation"
    //do here some more actions, which ever you want.....
}
else {
    $w('#myTextBox').text = "Sorry"
    //do here some more actions, which ever you want.....
    }

Your used elements would be…

  1. 1x Inputfield
  2. 1x Box
  3. 1x Textbox