How to Validate an Email Address in Shack Forms

Shack Forms Pro allows you to validate that a forms submitter enters a proper email address into their form.

Here is how it works:

  1. You make sure you selected the Email field type.
  2. Shack Forms Pro will automatically add the validating RegEx code.
  3. Save your form.

Let's take a look at this process in more detail.

  • In your Joomla control panel, go to Extensions > Modules:

go to extensions modules

  • You will see the Modules (Site) administrative page. Click on the required Shack Forms Pro module name to open it up for editing:

click on the required form module title

  • Make sure you are viewing the Module tab:

make sure you are on the module tab

  • Scroll slightly down and click the Add new field button:

click add new field

  • You will see a new panel for creating a new field. Click Text:

click text

  • In the drop-down list of field types, click E-mail:

click email

  • You will see that along with the Field label and Alias name, Shack Forms Pro also populated the Validation (Regualar Expression) field with the #^[\w.-]+(\+[\w.-]+)*@\w+[\w.-]*?\.\w{2,}$# code. This code will ensure that your form submitters will enter their email addresses in a proper format:

the email address validation field populated

  • Click Yes for the Required parameter.
  • Click Save or Save & Close.