PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

User Meta for Auto Fill Form and User Profile

  1. Hi

    There are 2 things we would like to do.

    1. How to bring all the "user meta" into "user profile".

    2. Our registration form contained phone#, address and more. Now, we are creating a form that should auto fill for user that is logged in. How can we do this? How can we add the user meta into "default value"? I have tried {user:phone} in default value, which is not working.

    Best,
    HL

    Posted 10 years ago on Monday January 9, 2012 | Permalink
  2. Once you map the form fields to the user meta fields in the User Registration feed, the user meta is populated. However, you need to determine how to display it. Here is a good explanation from Justin Tadlock on what is required:

    http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields

    Regarding question two, that might be a bug caused by the latest WordPress (3.3+) and Gravity Forms. Related topics:
    http://www.gravityhelp.com/forums/topic/wp-33-and-gf-form-problem#post-44753
    http://www.gravityhelp.com/forums/topic/auto-population-stopped-working-in-331

    The developers are looking into it. Sounds like the fix is available in this post.

    Posted 10 years ago on Tuesday January 10, 2012 | Permalink
  3. Thanks Chris, I got everything setup except the auto fill on "address". How can i do this, because there is no "default value" under "advanced".

    Posted 10 years ago on Friday January 13, 2012 | Permalink
  4. Do you have a link to your form online?

    Posted 10 years ago on Wednesday January 18, 2012 | Permalink
  5. attorney
    Member

    I didn't want to start a new thread since my issue is the same. First of all, with WP 3.3.1 I get errors adding Justin Tadlock's modification to functions.php to show the field:

    Fatal error: Call to undefined function add_action() in /home/mysite/public_html/wp-includes/functions.php

    Second, there is no explanation as to how to set up and connect the User Meta field. Are spaces and capitalization allowed? Is this field the field name that is entered into the usermeta table (I assume it is)

    Posted 10 years ago on Wednesday February 1, 2012 | Permalink
  6. You should not add code to core WordPress files. The functions.php is the file that exists in you theme folder, not the wp-includes folder. Some themes don't have one to start out with. If that's the case, you can create a functions.php file and place it in your theme or child theme folder.

    Let's get that working first, then we can work on the rest. Thank you.

    Posted 10 years ago on Wednesday February 1, 2012 | Permalink

This topic has been resolved and has been closed to new replies.