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.

Pre-Filled Forms with BuddyPress

  1. I'm using a GravityForm on a site that requires you to have a user account. And I have the form configured properly so that when people are logged into the site, it automatically pre-fills their name into a name field by allowing the normal name format to be populated dynamically (user_firstname, user_lastname) and sets the default email address using {user:user_email}. This saves time for people, but allows someone else at the company to overwrite the values so they could do the "daily update" for someone else. The form works great. Until...

    We want to add BuddyPress features to this site using the same user accounts that are there. When BuddyPress was activated, the form would no longer pre-fill the name field. The email field worked fine. Any suggestions on this? Thanks.

    Posted 12 years ago on Monday April 30, 2012 | Permalink
  2. David Peralty

    Unfortunately, it looks like BuddyPress changes how profile data is stored and recalled. As such, you will have to custom code something in your functions.php file to grab the data and pre-populate fields instead of just relying on the logged-in data merge tags.

    For some more information, check here:
    http://premium.wpmudev.org/forums/topic/how-do-i-display-the-users-first-name-in-buddypress
    http://premium.wpmudev.org/forums/topic/buddypress-question-on-full-name-field

    You might want to go to http://buddypress.org/support/ to ask about what you'll need to do to pull those details using PHP.

    Posted 12 years ago on Monday April 30, 2012 | Permalink