Email Validation on Adobe PDF, LiveCycle Designer

You want to validate an email address on your Adobe LiveCycle Designer Form ? No problem, just follow the following small tutorial.

Create a new Form. Add a Text Field to it. (so far so good ๐Ÿ˜‰ ) Go into the Object ย–> Value window of the Text field Choose ย–> validation Script Message (error) Create a nice little message saying that the mail address is wrong. Go into the Script Editor (CTRL-SHIFT-F5). Put in this little script as a JavaSscipt (run at Client)

 var r = new RegExp(); 

r.compile("^[a-z0-9_-.]+@[a-z0-9_-.]+.[a-z]{2,3}$","i");


var result = r.test(this.rawValue);


if (result == true)


ย ย ย  true;


else


ย ย ย  false;

ย 

Add a button that validates your form like the Email Submit Button.

And test it ! ๐Ÿ˜‰

Nerd Herder โ˜† Scrum Master โ˜† Jira Ninja โ˜† Freeletics evangelist โ˜† Photo Shooter โ˜† Dad โ˜† Husband โ˜† Zookeeper โ˜† Blogger Fit Dutch Bodies โ˜† Dutch

Site Footer