Entry Field Validation Example

This example demonstrates one way to handle the validation of entry fields. The pairs of duplicate entry fields also use duplicate variable names to keep the two fields in sync. (Yes, you can rename the variables to have the same name!)

A bit of Javascript is used to compare the contents of the Email field against a regular expression. If you find you need to modify the regular expression to match a different pattern, this is a good resource.


Download the source files for either Lectora Desktop (AWT) or Lectora Online (PKG). To open a PKG file in Lectora Online, click on the “Import a Lectora Online package file” button on the Getting Started screen and navigate to where you have saved the file.

Preview image
Additional files: Entry Field Validation Example

Tags: , , , , , , , ,

Your email address will not be published. Required fields are marked *