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

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

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!!!

Hey Juergen, :wave:

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.

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! :smile:

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!

Hi Juergen,

This is possible with our GP Populate Anything Perk. 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.

1 Like

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:

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

1 Like

Thank you, I will try this!

1 Like

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…

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

1 Like

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