Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
njbarrett CreditAttribution: njbarrett commentedComment #2
ron_s CreditAttribution: ron_s commentedUse
hook_inline_entity_form_entity_form_alter
to hide the title, and then set the title and save it as part of the parent'shook_entity_presave
function.Comment #3
njbarrett CreditAttribution: njbarrett as a volunteer commentedThanks