I have two entity types: Plant and Author.

I want to use an autocomplete Entity Reference field for "Author", within the "Plant" Entity.

I'm hoping there's a way that, if the user enters a name that does not yet exist in "Authors," it will create a new one matching that name - so the user doesn't have to leave what they're doing, add an author, then come back to the "Plant" entry page.

Could somebody point me in the right direction for doing this?

Comments

turpentyne’s picture

Bumping this, because of all the spam posts that came into forum page.

Stefan Lehmann’s picture

https://www.drupal.org/project/entityreference_autocreate

As far as I remember you have to select "Autocomplete" in the field settings. That will you enable to select a check box which will enable that auto create - functionality for that field for you.

I like cookies!