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.

1 Answer 1

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.

3
  • 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? Mar 28, 2015 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). " Mar 28, 2015 at 13:12
  • Thanks. I managed to do it using field collections and Autofill. Thanx again Mar 28, 2015 at 13:45

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.