MWML [FIELD]-Tag

MWML [FIELD]-Tag

Output the content of a subscriber field or a subscriber property.
Idea
Subscriber fields can also be included using aliases: [<Field_Alias> /]. Example: [Email /]

Usage

Email templates, Landing page templates, Survey templates, Emails, Landing pages, Surveys, Account constants, Dynamic content, Personalization helpers

Syntax

  1. [FIELD ... /]

Attributes

Subscriber Fields General

Attribute
Value
Description
id1
Integer
ID of the subscriber field
name
Text
Name of the element. Must not contain special characters or uppercase letters. Digits, hyphens, and underscores are allowed.
transform
eol-to-br
eol-to-space
tab-to-space
Conversion of line breaks or tabs. Multiple options possible, separated by a space.

Example: Output subscriber field "Email"
  1. [FIELD id='1' name='Email' /]<br />
  2. [Email /]

Subscriber fields of type "Date", "Time" and "Date and Time"

Attribute
Value
Description
format
Text
Format of the date or time. List of all options see strftime()
locale
de_DE2
en_GB
en_US
es_ES
...
Localization

Example: Output formatted subscriber field "Birthday"
  1. [FIELD id='5' name='Birthday' format='date %A, the %d.%m.%Y' locale='en_US' /]<br />
  2. [Birthday format='date %A, the %d.%m.%Y' locale='en_US' /]

Check out DATETIME and DATEDIFF for additional date/time operations.

Subscriber fields of type "Country selection"

Attribute
Value
Description
format
country name
Outputs the fully written country name. This is based on the ISO 3166-2 country code.
locale
de_DE2
en_EN
Localization. Only German and English output are supported.

Example: Output subscriber field "Country" with full name
  1. [FIELD id='10' name='Country' format='country name' locale='en_EN' /]

Check out DATETIME or DATEDIFF for more options.

Subscriber Properties

Attribute
Value
Description
property
id
subscriber-id
code
Subscriber properties
id Mailing ID (only available in mailings),
subscriber-id Subscriber ID
code Subscriber code

Example: Output subscriber properties
  1. Subscriber ID: [FIELD property='subscriber-id' /]
  2. Subscriber Code: [FIELD property='code' /]



1. Required field
2. Default: If the attribute is omitted, it is automatically initialized with this value.