Skip to main content

Merge tag {created_by:PROPERTY}

Entry author. A property of the user who made the entry, like {created_by:display_name}. Empty for entries made while logged out.

On the test entry, {created_by:ID} gives 2.

ProductGravity Forms
RequiresGravity Forms 2.5 or later
Needs an entryYes. Its value comes from a form entry.

Parameters

NameTypeRequiredDefaultDescription
User propertytextYes—Any property or custom field of the user who submitted the entry. The list shows common ones; others work too.

Values for User property

ValueDescription
IDUser ID
display_nameDisplay name
user_emailEmail address
user_loginUsername
rolesRoles

Other values are accepted too.

Examples

Output from the real plugin code, run on a test entry.

Merge tagOutput
{created_by:ID}2
{created_by:display_name}Ada Lovelace
{created_by:user_email}[email protected]
{created_by:user_login}ada
{created_by:roles}editor