1 Reply Latest reply on Jun 12, 2009 5:26 AM by MarkWalsh

    Text box validate script


      Hello all,
      I have a problem with textbox validate script. i want to check validation of textbox 3 time and after 3 wrong attempt automatically right answer will display in a message box.
      var n=getField("item2").value;
        if(n !="lightning")
              app.alert("Try again...",3) 
              app.alert("Correct... ",3);


      This script written against a button,this code working properly, but i want to check only 3 times if all 3 time wrong answer will appear then a msgbox will appear which can show right answer (lets suppose "lightning"),can anybody help me?