Hi guys,

Fairly simple request but I cannot seem to figure this out - How can I hide the 'title' field in the inline entity form, and make all the children created have the same title as the parent entity? I am not using this in a Drupal Commerce context, just regular one-to-many entity reference relationship.

Comments

njbarrett’s picture

Issue summary: View changes
ron_s’s picture

Use hook_inline_entity_form_entity_form_alter to hide the title, and then set the title and save it as part of the parent's hook_entity_presave function.

njbarrett’s picture

Status: Active » Closed (fixed)

Thanks