# Can I pre-populate a form with custom user profile details, and if so how?

**URL:** <https://community.gravityforms.com/t/can-i-pre-populate-a-form-with-custom-user-profile-details-and-if-so-how/15555>\
**Category:** Get Help\
**Tags:** user-merge-tag, dynamic-population\
**Created:** [July 18, 2023, 7:20pm UTC](https://community.gravityforms.com/t/can-i-pre-populate-a-form-with-custom-user-profile-details-and-if-so-how/15555 "2023-07-18T19:20:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![JuergenB](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/juergenb/32/13258_2.png) [@JuergenB](https://community.gravityforms.com/u/JuergenB)\
**Post date:** [July 18, 2023, 7:20pm UTC](https://community.gravityforms.com/t/can-i-pre-populate-a-form-with-custom-user-profile-details-and-if-so-how/15555/1 "2023-07-18T19:20:48Z")

</div>

**I appreciate any help with this:**

I need to pre-fill out a gravity form with user details such as first and last name, email address etc. I know an easy way to do this was mentioned [in this post here](https://community.gravityforms.com/t/dynamically-populate-logged-in-user-info/415)

**But I would like to also include non-WP-standard user info such as Mailing Address, Biography and other custom user fields, which were added by a custom user profile plugin.**

Is there a way to do do this easily using gravity forms?

Many thanks!!!

---

<div class="post-metadata">

**Author:** ![faisalahammad](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/faisalahammad/32/13948_2.png) [@faisalahammad](https://community.gravityforms.com/u/faisalahammad)\
**Post date:** [July 18, 2023, 11:30pm UTC](https://community.gravityforms.com/t/can-i-pre-populate-a-form-with-custom-user-profile-details-and-if-so-how/15555/2 "2023-07-18T23:30:15Z")

</div>

Hey Juergen, 👋

To add the user merge tags, follow the article below to check all available fields, such as first and last name, email, display name, ID, etc.

> **[{user} Merge Tag](https://docs.gravityforms.com/user-merge-tag/)**
>
> A Gravity Forms merge tag that displays the value of the user meta field for the logged in user, based on the modifier used.

When you’re going to use the merge tag for email, it’ll be like `{user:[user_email]}`. Give it a try, and let me know how that goes! 😄

---

<div class="post-metadata">

**Author:** ![JuergenB](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/juergenb/32/13258_2.png) [@JuergenB](https://community.gravityforms.com/u/JuergenB)\
**Post date:** [July 19, 2023, 3:12pm UTC](https://community.gravityforms.com/t/can-i-pre-populate-a-form-with-custom-user-profile-details-and-if-so-how/15555/3 "2023-07-19T15:12:33Z")

</div>

Hi Faisal:

Thank you for your response, and yes I am aware of the merge tags for built in fields like first\_n ame and last\_name, which works well…

But my question is about displaying custom fields that were added using a user profile plugin, and are not part of the core Wordpress, for example:

1. Mailing Address
2. Bio Statement

How can I display those?

Many thanks!

---

<div class="post-metadata">

**Author:** ![samuel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/samuel/32/2539_2.png) [@samuel](https://community.gravityforms.com/u/samuel)\
**Post date:** [July 19, 2023, 3:57pm UTC](https://community.gravityforms.com/t/can-i-pre-populate-a-form-with-custom-user-profile-details-and-if-so-how/15555/4 "2023-07-19T15:57:54Z")

</div>

Hi Juergen,

This is possible with our [GP Populate Anything Perk](https://gravitywiz.com/downloads/gp-populate-anything/). You can populate the form fields with data from the User object, including custom fields.Here’s a tutorial documentation with details on how this works.

> **[How To Populate Data Based on the Current User - Gravity Wiz](https://gravitywiz.com/how-to-populate-data-based-on-the-current-user/)**
>
> Learn ways you can populate Gravity Forms fields with data specific to the current user and update the Gravity Forms user meta.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [July 20, 2023, 1:08am UTC](https://community.gravityforms.com/t/can-i-pre-populate-a-form-with-custom-user-profile-details-and-if-so-how/15555/5 "2023-07-20T01:08:10Z")

</div>

If you stored the information in the wp\_usermeta table, you can get it out using the {user} merge tag. You need to know the key that was used when storing the value.

For example:  
{user:mailing\_address}  
{user:bio}

If you have any other questions, please let us know.

---

<div class="post-metadata">

**Author:** ![JuergenB](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/juergenb/32/13258_2.png) [@JuergenB](https://community.gravityforms.com/u/JuergenB)\
**Post date:** [July 21, 2023, 8:34am UTC](https://community.gravityforms.com/t/can-i-pre-populate-a-form-with-custom-user-profile-details-and-if-so-how/15555/6 "2023-07-21T08:34:12Z")

</div>

Thank you, I will try this!

---

<div class="post-metadata">

**Author:** ![JuergenB](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/juergenb/32/13258_2.png) [@JuergenB](https://community.gravityforms.com/u/JuergenB)\
**Post date:** [July 21, 2023, 8:36am UTC](https://community.gravityforms.com/t/can-i-pre-populate-a-form-with-custom-user-profile-details-and-if-so-how/15555/7 "2023-07-21T08:36:52Z")

</div>

Thank you Chris, I will try this by looking up MySQL tables on the backend, hopefully the 3rd party user profile plugin called “Ultimate Member” we are using will have modified the user meta data table in a way that makes these additional user fields available this way…

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [July 21, 2023, 11:00pm UTC](https://community.gravityforms.com/t/can-i-pre-populate-a-form-with-custom-user-profile-details-and-if-so-how/15555/8 "2023-07-21T23:00:45Z")

</div>

Yes, check the wp\_usermeta database table to find the actual meta key name, and you can use that with the `{user:}` merge tag.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [August 20, 2023, 11:00pm UTC](https://community.gravityforms.com/t/can-i-pre-populate-a-form-with-custom-user-profile-details-and-if-so-how/15555/9 "2023-08-20T23:00:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
