I want to have a content type named person with fields like first name, last name, phone number ....

In another content type named account, it will also contain the fields belong to person, but I want to have a drop down list for the field person in account to select from existing person content, and auto populate the rest of the fields in account.

Also, is it possible to auto populate a field based on the value in previous field? For example, two fields of the same content type, user id and user email, while user input the user id sunnyside, user email would automatically generate [email protected].


1 Answer 1


you have to write alter function for your form then you may attach fields from another entity by using field attach form function here is a example for loading profile2 fields form elements

 global $user;
         $profile = profile2_load_by_user($user,'profile');
  • but I don't have a form, they all content types
    – lusketeer
    Jul 10, 2012 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.