Textbox - Problem with my script
Hey everyone,
I hope you´re all doing fine!
I think this is very simple to solve.
I´m having problems with my script when using a textbox in my PDF.
I created a texbox and all I want is to write a word and if the word is correct,
te user will get the message "Congratlations!", if not "Sorry, try again" and the
word in the textbox is immediately erased.
Below is the scrpt I am using:
-quote-
if (this.getField("Texto2").value == "been")
{
app.alert("Congratulations!")
}
if (this.getField("Texto2").value !== "been")
{
app.alert("Sorry, try again!")
this.getField("Texto2").value = "";
}
-unquote-
Can anyone help me please? I really appreciate your help in advance.
Andre Salles
