1

I have two content types. hospitals and referral form. I would like to pull data from the hospital form automatically, example hospital name, address, contact etc when the user fills in the name of the hospital in the referral form.

I have used entity reference but i cant get it to work. It only gets the URL of the node but not the other fields. And also i have used autofill but it only works for a single content type. If any one has done this before or if anyone has an idea, please do help. looking forward to your responses.

0

Take a look at entityreference_autofill

The Entity reference autofill module gives Entity reference fields an option to populate other form fields with data from selected referenced entities.

| improve this answer | |
  • Thanks Andre. I have looked at the module but it only works for the content type that is referenced. Or may be i'am missing something. Have you used it before for such a case? – Moses Sseggembe Mar 28 '15 at 11:25
  • "If you plan to load the referenced values from another entity type or bundle, you will need to add another instance of the same field to the referenced entity (source). " – Andre Baumeier Mar 28 '15 at 13:12
  • Thanks. I managed to do it using field collections and Autofill. Thanx again – Moses Sseggembe Mar 28 '15 at 13:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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