The {user} and {created_by} Merge Tag

About {created_by}

The {created_by} Merge Tag allows you to display details of the entry creator. It supports all the functionality of the Gravity Forms and uses the same structure as the {user} Merge Tag documented on the Gravity Forms website.

Difference between {user} and {created_by}

The {user} shortcode displays information about the currently logged-in user.

The {created_by} displays information about the entry creator, if there is one.


Usage:

The user must be logged in when the entry is submitted. If the user was not logged in when creating the entry, {created_by} will be empty. You can wrap {created_by} with a [gvlogic] shortcode to check for the its existence.

  • {created_by:ID} - Displays the user ID of the entry creator
  • {user:display_name} - Displays the Display Name of the submitting user.
  • {user:user_email} - Displays the email of the submitting user.
  • {user:user_login} - Displays the user login of the submitting user. {user:user_login}
  • {user:[meta_key]} - Displays the value of whatever user meta key is provided. Any user meta (including custom user meta) can be displayed with this merge tag. Below are a few examples of how this merge tag can be used.

Example

You can add this code to a Custom Content field to link to the entry creator's User Profile page in the WordPress Dashboard: