I have a scenario where I'm using the RedHen CRM module to hold contact information for users (contacts are entities).
I then have a content type called Tasks, with a entity reference field that lets you search for a contact in the system to attach to the node. However, I was wondering if there was a way to make it so if I'm on the John Doe contact page, and "Create a new task" is clicked, it auto filled in the entity reference with the entity I just came from? That way the user doesn't have to do a lookup and it's just prepopulated.

Is there some sort of token I can append to the URL that'll do this for me?

Thanks!

Comments

stefan lehmann’s picture

https://www.drupal.org/project/entityreference_prepopulate .. That sounds like it's doing it, but I don't have a clue how it works. Probably just give it a try. :-)