How to Add and Embed a Email Validation Script Widget

The Email Validation Script widget helps you validate the email addresses your customers enter when on your website. This way, you will receive valid email addresses that you can use for various purposes, such as shipment status notifications, email marketing, and newsletters.

For example, as a store owner, you want to be sure your customers enter the correct email address during the checkout process, so they receive all shipment status notifications from TrackMage.


Create an Email Validation Widget

  1. From your TrackMage dashboard, navigate to Widgets > Add Widget.
  2. From the Add Widget screen, select Email Validation Script.
  3. Enter a value for the following fields:
    • Title - Give your email validation widget a descriptive name.
    • Domain - Your website’s domain
    • Validation Message - This text will be shown when an incorrect email address is entered.
    • Suggestion TemplateThis text will be shown with a suggested domain name if the domain name entered does not exist or is misspelled.
    • Email input selector - CSS selector for the input you want to validate. The default type is email.
  4. Click the +Create Email Validation Script button.

Copy the Code for the Widget

To embed the email validation widget, you need to have the embed code of the widget handy.

  1. Click the Edit icon for the widget you want to embed.
  2. Under the Embedded Code tab, click Copy Code to copy the widget code to a notepad.
  3. Save the notepad file.

Embed the Widget on your WordPress Website

  1. Login to your WordPress admin account.
  2. From the dashboard, navigate to Pages > Add New.
  3. Click Add a new block button and select Custom HTML. Add an input tag type:email.
  4. Click Add a new block button, select Code, and paste the widget's code from the notepad.
  5. Click Save or Update to save the changes.
  6. Click Preview to see the email validation widget in action.

Enable or Disable the Widget

By default, a widget is enabled when you create it. You can disable the widget and stop it from validating emails on your website.

  • To disable a widget, toggle the button, and the button turns Grey.
  • To enable a widget, toggle the button, and the button turns Green.

Did this solve your problem?