Problem/Motivation

While creating or updating a node, which we will call "parent", which has another entity connected, which we will call "child", using inline entity form I cannot create new "child" entities because the error "This entity (node:) cannot be referenced."
However, if I connect an already existing "child" entity there is no problem.

I'm on Drupal 10.2.4

Comments

smurfxx created an issue. See original summary.

spuky’s picture

I had the same Problem my field was filtered by a View...

updated to 3.x did not solve it... but selecting Reference Method..

"Views: Filter by an entity reference view and allow autocreation"

and ticking the box "Create referenced entities if they don't already exist"

Did solve it... I don't know if that only exists in 3.x but it worked...

ccarnnia’s picture

++ on @smurfxx findings.
i am seeing it on 3.0.0-rc20.
parent node has an entityrefrence .
refrence method is : Filtered by entity refrence view .
and the widgent is `Inline entity form - Complex`.

looking ...

neograph734’s picture

I am running into the same issue, but I could not find the "Views: Filter by an entity reference view and allow autocreation" selection method.

I think this is achieved by core issue #2800875: Autocreate for Entity Reference selection handlers that extend ViewsSelection. Will try that now.