0151 355 4555

Advanced Options

The email validation performed by the Ajax validation script is done at domain level by default (validating everything to the right of the @ symbol). However, the service can also perform validation at other levels too as described in the Email Validation documentation page. To use one of these alternative levels, specify it in the d8validationlevel attribute, for example:

<input type="text" name="email" d8validation="email" d8validationlevel="Address" />

The Ajax Telephone & Email Validation script can also make use of any advanced options that are documented for the International Telephone Validation or Email Validation services by including them as name=value pairs separated by ampersands in the d8options attribute, for example:

<input type="text" id="telephone"
  d8errortext="Invalid telephone number"
  d8options="RequiredCountry=GB&BarredPrefixes=+4490" />

This example applies the RequiredCountry option to ensure the entered telephone number is from the UK, and the BarredPrefixes option to exclude UK premium rate numbers.

A full list of the options that can be configured in this way is available on the documentation pages for the International Telephone Validation and Email Validation services respectively.