Reply To: Use BP data to populate per-user forms
I am trying something similar with gravity forms, I am trying to pre-populate gravity forms fields with buddypress profile data fields and I can’t get it work too, I am using something like this in functions.php if it helps:
// Buddypress pre-populate phone
add_filter("form_field_value_phone", "populate_phone");
function populate_phone() {
$current_user = wp_get_current_user();
$current_user_id = $current_user->ID;
$phone = bp_profile_field_data( array('user_id'=>$current_user_id,'field'=>'phone' ));
return $phone;
}