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
Comment #2
spuky commentedI 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...
Comment #3
ccarnnia commented++ 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 ...
Comment #4
neograph734I 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.
Comment #5
neograph734This could actually be a duplicate of #2753553: Referencing new entity fails when reference method is view or entity is unpublished.