Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In more than one project I have run into into the following:
You want to reference a node that has not yet been created, rather than creating this beforehand or opening up a new tab and stepping back when it is completed,
if the user enters a new entity that does not currently exist, they should be given the option to create it.
Comments
Comment #1
energee CreditAttribution: energee commentedComment #2
bojanz CreditAttribution: bojanz commented"needs review" is for issues that contain patches. This one doesn't.
This is probably something that should be implemented by a contributed module, and not Entityreference itself.
A complex widget that solves a related use case is Inline Entity Form, which allows add / edit / delete of entities of the referenced type. So perhaps that might be close to what you're looking for.
There's also References Dialog which has entityreference support since recently, though I've had problems getting it to work.
Comment #3
jygastaud CreditAttribution: jygastaud commentedYou can also look at Entityconnect module.
Comment #5
ibrahim baykal CreditAttribution: ibrahim baykal commentedi tried entity connect thank you @jygastaud it's work
Comment #6
emmanueldelouise CreditAttribution: emmanueldelouise commentedI think inline entity is a good choice to solve this problem