2 Replies Latest reply on Apr 4, 2012 7:55 AM by haas422

    how to set the focus to a textbox after validating it ?


      hello ,,,

      I'm new to pdf scripting using javascript ,,,, I have a pdf form which contains many objects like textboxes , check boxes ,, etc .

      so far I was able to render a textbox and insert the date once the document is opened.

      now Im trying to write a function to validate "Email" textbox to make sure the email is written in a correct format ,,, I'm almost done with it but I don't know how to keep the cursor ,, or the focus inside the email textbox if the user enteres a wrong email ?

      I mean I want the focus to remain on the textbox until the user enteres a correct email ?



      thank you for helping.