Score:0

Inline Entity Form - is it possible to add field from child entity's taxonomy reference field

in flag

I have the below structure on my Drupal 9 site:

Product content type
  -- field_product_integration (references contents of type Integration)
Integration content type
  -- field_product_feature (references terms from Features Taxonomy)
Features Taxonomy
  -- field_feature_category (Dropdown with three possible options)

On Manage Form for field_product_integration I have selected Inline Entity From Complex widget and hence I can select from Features listing provided by field_product_feature on Product add/edit form.

I need to also render field_feature_category in front of each Feature so that content editors can set field_product_category value for each selected Feature. I need this because each selected Feature can have one of the three possible values (Yes/No/Unknown). Creating hierarchy in Features taxonomy is not an option.

I checked the hooks provided by Inline Entity Form module and discovered that I can add fields from Integration Content type but unable to figure out if it is possible to add fields from Feature taxonomy (since it is referenced from child entity not from the parent entity itself).

How to show fields in the Inline Entity Form display widget?

Sorry for the long question, I could not find a simpler way to explain my problem and I hope it's clear.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.