---
title: "Understanding how an entry gets associated with a user"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview/advanced/understanding-how-an-entry-gets-associated-with-a-user/"
---

On our support, we've seen that many Gravity Forms users are unaware that the **current user ID** is always stored alongside the form submission (also known as "entry") if the user filling the form is logged in on the website.

The usual method people use to capture this data is by using a hidden field with the [{user} Merge Tag](https://www.gravitykit.com/docs/gravityview/merge-tags/the-createdby-merge-tag/) as the default value of that field:

![Field setup for user ID with default value and dynamic option](https://www.gravitykit.com/wp-content/uploads/2025/10/file-jARfENMQMm.png)The {user} Merge Tag method is very useful but **unnecessary** since this information is already stored as entry meta (metadata from the form submission)
on the "**wp\_gf\_entry**" table inside the "**created\_by**" column:![Table showing SQL query result with 'created_by' user association column highlighted](https://www.gravitykit.com/wp-content/uploads/2025/10/file-xoAKDoyyGJ.png)**Which means the hidden field trick above is redundant.**

On GravityView, that information can be easily retrieved by using the [{created\_by} Merge Tag](https://www.gravitykit.com/docs/gravityview/merge-tags/the-createdby-merge-tag/) inside a [Custom Content field](https://www.gravitykit.com/docs/gravityview/getting-started-gravityview/using-the-custom-content-field/):

![Custom content template with placeholders for User ID, Email, Display Name, and Roles](https://www.gravitykit.com/wp-content/uploads/2025/10/file-ZC6p5dwYh3.png)
*There's plenty of information available that can be retrieved about the user who submitted the form, just because Gravity Forms stored the User ID on the entry meta*![Table showing user entries linked to user info fields; two entries displayed](https://www.gravitykit.com/wp-content/uploads/2025/10/file-zE8YCSSAtV.png)

## If the user is not logged in during the form submission

If a form is submitted anonymously, then there are two methods to associate a user with that entry:

1\) By manually changing the entry creator: [Changing the creator of an entry in Gravity Forms](https://www.gravitykit.com/docs/gravityview/edit-entry/changing-the-creator-of-an-entry-in-gravity-forms/).

2\) If your form creates a WordPress User by using the [Gravity Forms User Registration add-on](https://docs.gravityforms.com/creating-feed-user-registration-add/), GravityView automatically associates the form submission with the newly created user. This is a GravityView-exclusive functionality. Check out this GravityKit Academy guide on [Advanced User Management and CRM Functionality](https://academy.gravitykit.com/course/gravityview-advanced-user-management/) to know more.