• nithesh123

    (@nithesh123)


    We want to use the buddypress existing username, email and phone number in the contact form 7. Can you please help us with the php code or short-codes of buddypress to add in the contact form 7?

    Eg: We have Email and Name fields in the contact form 7. We want that to be auto populated by their buddypress existing username and email. So that they don’t have to fill those fields again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter nithesh123

    (@nithesh123)

    Thanks for that.

    <label> Name *
    [text* your-name default:user_display_name] </label>

    <label> Email *
    [email* your-email default:user_email] </label>

    <label>Mobile Number *
    [text* number default:field_31]</label>

    <label>College *
    [select* institution include_blank “MNNIT Allahabad” “AVV Coimbatore” “IGDTUW Delhi” “IIITM-K Trivandrum” “IIT (BHU) Varanasi” “TAT Bhubaneswar” “Other”]
    </label>

    <label>College Name (if other, enter your college name)
    [text othercollege]</label>

    Name and Email, I have taken default values like this. It works fine.
    But mobile number, college, other college data, I want to take it from additional profile fields that I have added from the user registration form to this contact form.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    I don’t know what the field_31 is, but if it is a user profile field default:user_field_31 should work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Contact form 7 and Buddypress’ is closed to new replies.