# Auto fill in from from user logged in

**URL:** <https://community.gravityforms.com/t/auto-fill-in-from-from-user-logged-in/9191>\
**Category:** Get Help\
**Tags:** custom, logged-in-user, user-registration\
**Created:** [May 17, 2021, 8:16am UTC](https://community.gravityforms.com/t/auto-fill-in-from-from-user-logged-in/9191 "2021-05-17T08:16:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![user60a224e3d3b23518](https://avatars.discourse-cdn.com/v4/letter/u/a4c791/32.png) [@user60a224e3d3b23518](https://community.gravityforms.com/u/user60a224e3d3b23518)\
**Post date:** [May 17, 2021, 8:16am UTC](https://community.gravityforms.com/t/auto-fill-in-from-from-user-logged-in/9191/1 "2021-05-17T08:16:28Z")

</div>

Hi,  
So im trying this plugin and created a user register account which includes Address.  
I have a form i want so when the user logs in and opened this data form it auto fills in their details including from a drop down.  
Ive tried alll documentation but it still doesn’t seem to auto fill in?

---

<div class="post-metadata">

**Author:** ![webaware](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/webaware/32/110_2.png) [@webaware](https://community.gravityforms.com/u/webaware)\
**Post date:** [May 18, 2021, 3:27am UTC](https://community.gravityforms.com/t/auto-fill-in-from-from-user-logged-in/9191/2 "2021-05-18T03:27:29Z")

</div>

You can use merge tags to prepopulate fields from user meta. Here are the most usual ones:

> **[{user} Merge Tag - Gravity Forms Documentation](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.

If you have address fields saves to WordPress user profiles, you can include those too. You need to find out what their names are though. e.g. for WooCommerce, they have names like billing\_address\_1, billing\_country, etc.

---

<div class="post-metadata">

**Author:** ![user60a224e3d3b23518](https://avatars.discourse-cdn.com/v4/letter/u/a4c791/32.png) [@user60a224e3d3b23518](https://community.gravityforms.com/u/user60a224e3d3b23518)\
**Post date:** [May 18, 2021, 5:49am UTC](https://community.gravityforms.com/t/auto-fill-in-from-from-user-logged-in/9191/3 "2021-05-18T05:49:06Z")

</div>

thanks for the reply.

So i have the user account created with gforms registration, I used the address field in the setup of the form.  
Now i have another form that i want to logged in user date to auto fill in  
i read the info here

> **[Address - Gravity Forms Documentation](https://docs.gravityforms.com/address-field/)**
>
> The Address field makes it quick and easy to capture address information on a form.

but very confused. Whats the Field Name: of the original data? where can i find that.  
I also have a drop down on the registration form that i want to show the as auto fill too what they selected in registration.  
Any assistance appreciated. thanks

---

<div class="post-metadata">

**Author:** ![webaware](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/webaware/32/110_2.png) [@webaware](https://community.gravityforms.com/u/webaware)\
**Post date:** [May 18, 2021, 6:28am UTC](https://community.gravityforms.com/t/auto-fill-in-from-from-user-logged-in/9191/4 "2021-05-18T06:28:55Z")

</div>

Did you map the separate subfields of the Address field to user meta records in a [User Registration feed](https://docs.gravityforms.com/creating-feed-user-registration-add/)? e.g. Address line one to something like address\_line\_1, City to something like address\_city, etc. If you did, then you can use the same names to prefill the fields on your other form, using merge tags like {user:address\_line\_1}, {user:address\_city}.

Generally the only tricky bits should be the state / province and country subfields. If you’re taking the exact values from Gravity Forms, you should have no problem. If you’re trying to use some other values, like WooCommerce profile field values, you need a translation layer – [I have a plugin for that](https://gf-address-enhanced.webaware.net.au/) 🙂

If you’re not trying to integrate the user profile data with another plugin (like WooCommerce), then you should be able to do it all with Gravity Forms and its User Registration add-on.

---

<div class="post-metadata">

**Author:** ![user60a224e3d3b23518](https://avatars.discourse-cdn.com/v4/letter/u/a4c791/32.png) [@user60a224e3d3b23518](https://community.gravityforms.com/u/user60a224e3d3b23518)\
**Post date:** [June 1, 2021, 2:12am UTC](https://community.gravityforms.com/t/auto-fill-in-from-from-user-logged-in/9191/5 "2021-06-01T02:12:45Z")

</div>

Hi ross.  
I think ive worked out it all now.  
Except i have a drop down selection in the registration, how do get that to auto populate.

this is the db save data for that drop down  
INSERT INTO `wp6n_gf_entry_meta` (`id`, `form_id`, `entry_id`, `meta_key`, `meta_value`, `item_index`) VALUES  
(164, 1, 12, ‘3’, ‘DVA’, ‘’);

How can i turn the dropdown or just a text field on a different form to auto populate this data of the logged in user.

Thanks  
Stuee

---

<div class="post-metadata">

**Author:** ![webaware](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/webaware/32/110_2.png) [@webaware](https://community.gravityforms.com/u/webaware)\
**Post date:** [June 1, 2021, 3:16am UTC](https://community.gravityforms.com/t/auto-fill-in-from-from-user-logged-in/9191/6 "2021-06-01T03:16:53Z")

</div>

To load from a WP user profile, you need to map it to save into user meta. On your User Registration feed, map a new key to your form’s field number 3. The drop-down list that says “Select Meta Key” has an option at the bottom of the list, “Add Custom Meta” which lets you type in your new meta key name. Make sure that your new meta key isn’t something that WP core or a plugin might use, e.g. by prefixing it – sliles\_choice or something. You can then use that key when loading the value from the user’s profile – {user:sliles\_choice}

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 5, 2022, 8:33am UTC](https://community.gravityforms.com/t/auto-fill-in-from-from-user-logged-in/9191/7 "2022-01-05T08:33:32Z")

</div>


