CommonValidEmailControl

CommonValidEmailControl requests an email address from the shopper and validates the supplied value.

Email address field with required validation.

Configurable properties

Property Default Valid values or format Effect
ButtonToClick
String
Not specified   Sets the button used to submit the control.
CssClass
String
Not specified   Sets the CSS class.
ValidatorsEnabled
Boolean
Not specified true, false Controls whether validation is enabled.

SitePages.config example

The following example loads CommonValidEmailControl.ascx and applies the documented literal defaults. The following properties are omitted because they do not have documented literal defaults: ButtonToClick, CssClass, ValidatorsEnabled.

<Control src="CommonValidEmailControl.ascx" />

Add this <Control> element to the appropriate page placeholder as described in The SitePages.config File.

Inherited properties

The control inherits shared visibility and shopper-access conditions from CyberStoreBaseControl.

Validate the control

  1. Display the control in the intended shopper form.
  2. Submit a valid email address and confirm the form accepts it.
  3. Submit an invalid email address and confirm the form presents its configured validation response.

This site uses Just the Docs, a documentation theme for Jekyll.