Text plus a format contract — the HTML standard’s own definition of a valid address.
required's question.Text input, plus a format contract: a string whose value must be
a valid email address. Same storage, same editor — the difference is one
validation rule at the write boundary.
| Label | Contact email |
| Key | contact_email |
| Data type | string |
| Editor | text_input |
| Validation | email: true |
The boundary checks the value against the HTML standard's own
definition of a valid email address — the same rule the author's
browser applies to input type="email" — so the field never disagrees
with the form control in front of it. Blank stays required's question:
a format rule never flags an empty value, so optional-but-valid works
without a second rule.
<a href="mailto:<%= cms.asset.content.contact_email %>">
<%= cms.asset.content.contact_email %>
</a>