I've got a master entity (node) that users edit, and I've got an entity reference on it. I'd like to be able to edit a field on the referenced entity on that master referencing entity's edit form.

Is there a module for this? Or can somebody just give me a general sense of a good way to accomplish this?

I know I can create a custom form element with hook_form_alter, then use a form_submit function, and then use entity_metadata_wrapper to load and save values.

That seems cumbersome, is there a better way to do this?

  • You can use Inline Entity Form to get the referenced entity's fields and then hide what you need to hide and/or change the form's structure.
    – Ben
    May 16, 2015 at 3:32

1 Answer 1


You can use https://www.drupal.org/project/references_dialog or https://www.drupal.org/project/inline_entity_form.

The first one will load the referenced entity in a popup, the other will show it as part of the original form.

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.