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.

Prevent Certain Fields from Autopopulating in Profile Update Forms

  1. We have two different account types on a paid Buddypress site that utilize different profile fields. For each account type, I'd like to include the fields from the other account type as admin-only fields with no choice set so that when users switch account types, we can automatically remove the other profile fields from displaying on their profile. How can I prevent these fields from autopopulating information from BP x-profile fields?

    Thanks for your help

    Posted 6 years ago on Wednesday May 29, 2013 | Permalink
  2. I forwarded this to the development team. Thank you for your patience.

    Posted 6 years ago on Thursday May 30, 2013 | Permalink
  3. I am having a hard time understanding what exactly you are trying to do. Maybe a few different screenshots would help.

    Posted 6 years ago on Friday May 31, 2013 | Permalink
  4. Screenshots aren't really feasible here.

    We're using separate registration forms for different kinds of users. There are certain profile questions/fields that only pertain to a specific user type. In some instances, a user might switch profile types. In those cases, I don't want the old, now irrelevant fields to show up on their profile.

    The issue is that the Gravity Form used to update a user's profile for each profile type will automatically pull the field value for all completed fields. If I could block this from happening, I could include all of the old fields, set them to "Admin Only" and have no value selected/completed, rendering them blank and keeping them off their public profile.

    Posted 6 years ago on Friday May 31, 2013 | Permalink
  5. It seems like what you need to do is use the gform_user_registered ( and gform_user_updated (not documented, but has the same parameters as gform_user_registered and runs when the user gets updated). When using these hooks you will be able to use PHP to add/edit/remove values from each of the profile fields and have complete control of what is in them. You will need some PHP experience to pull this off, but this seems to be the only way to accomplish the customization you are looking for.

    Posted 6 years ago on Monday June 3, 2013 | Permalink