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.
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 2.5 or later |
| Needs an entry | Yes. Its value comes from a form entry. |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| User property | text | Yes | — | Any property or custom field of the user who submitted the entry. The list shows common ones; others work too. |
Values for User property
| Value | Description |
|---|---|
ID | User ID |
display_name | Display name |
user_email | Email address |
user_login | Username |
roles | Roles |
Other values are accepted too.
Examples
Output from the real plugin code, run on a test entry.
| Merge tag | Output |
|---|---|
{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 |