Email Fields

You are viewing documentation for an unreleased version of Craft CMS. Please be aware that some pages, screenshots, and technical reference may still reflect older versions.

Email fields give you a normal text input that requires a valid email address.

# Settings

Email fields have the following settings:

  • Placeholder Text – The field’s placeholder text, to be displayed if the field has no value yet.

# Development

Calling an Email field in your templates will return the value that was entered in the field.

{% if %}
  <a href="mailto:{{ }}">{{ }}</a>
{% endif %}