I have been able to use this module fine with node pages. In my scenario, a node page has an entity reference field to an embedded EntityForm, and that form is prepopulated by the node of the current page (and is passed along with the form submission).

However, this does not work for user entities pages. I am using the module View Mode Page (https://www.drupal.org/project/view_mode_page) and have a specific display mode at /user/[uid]/mentor. However, the entity reference field is not prepopulating the field on this page.

I'm not sure if the module is currently coded to work with this scenario. If its not, I'd like to see if its possible to add this feature.

Comments

jdesrig created an issue.

jdesrig’s picture

I also just confirmed that the issue here isn't simply that this module doesn't integrate well with the View Mode Page module. I just tried it on the user page itself, and there was a different issue. The value was now autopopulating, however it was not the correct format. After some debugging, I found that the autcomplete was adding the uid to the field, while and the entity reference field was expected a format of [user_name] ([uid]). When I autopopulated the field manually in a form_alter and used this format, it worked fine.