The Entity reference autofill module gives Entity reference autocomplete fields support
to populate fields in their form with values from the referenced entities.
Link to project page
https://drupal.org/sandbox/poolfi/2140197
Git repository
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/pool.fi/2140197.git entityreference_autofill
Feature
An example feature demonstrating the module is available from:
git clone --branch master pool.fi@git.drupal.org:sandbox/pool.fi/2142645.git entityreference_autofill_example_feature
(Create nodes of type "Work order" to see the module in action)
Source
Checkout the source without using git here:
http://drupalcode.org/sandbox/pool.fi/2140197.git
Manual reviews of other projects
https://drupal.org/comment/8221641#comment-8221641
(Follow-up)https://drupal.org/comment/8248271#comment-8248271
https://drupal.org/comment/8227437#comment-8227437
(Follow-up)https://drupal.org/comment/8248089#comment-8248089
(Follow-up)https://drupal.org/comment/8252893#comment-8252893
| Comment | File | Size | Author |
|---|---|---|---|
| autofill.jpg | 26.35 KB | jgullstr |
Comments
Comment #1
kscheirerYou have a number of style issues reported here: http://pareview.sh/pareview/httpgitdrupalorgsandboxpoolfi2140197git, especially the non-unix line endings and form_state['values'] should be fixed. I did not review the full module.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #2
jgullstr commentedThanks for your comments, kscheirer. I've corrected your suggestions, except the form_state warnings, which in this case are by design. I've tried to clarify this in the source comments.
Comment #3
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
jgullstr commentedAdded feature info
Comment #5
jgullstr commentedComment #6
jgullstr commentedAdded manual review link, updated drupalcode.org link
Comment #7
christianadamski commentedHi jgullstr,
I have not even checked out your code yet to be honest, so maybe I am missing the point. Could you maybe describe a bit better, what exactly your module tries to achieve in the description?
Comment #8
rosk0You have dependency(entityreference_autofill.module:203) to entity module which doesn't stated anywhere. This should be stated in info file.
As soon as this is fixed it is good to me.
Comment #9
jgullstr commentedThanks RoSk0, great catch! Must've missed that one since its already inherited from the entityreference module. Updated and commited.
Comment #10
jgullstr commentedThank you for your feedback, ChristianAdamski. I've tried to clarify what the module does on its project page. I'm not very good at explaining, but I hope it will clear things up a little :P
Comment #11
jgullstr commentedAdded manual review, removed commit info from drupalcode.org link
Comment #12
basant commentedComment #13
jgullstr commentedDrupal.org project application workflow
Comment #14
basant commentedJgullstr, thanks for that link.
I am sorry but I failed to understand what your module does, even my two fellow developers were clueless after reading the description.
What I did -
1. created a content type "abc"
2. created one more content type "xyz" and added two fields to it
a. abc_ref - entity reference to abc
b. a_fill - textfield
3. edited "abc" and added instance of a_fill to it.
4. edited "xyz" -> abc_ref , in autofill settings, i checked "Enable autofill for this field" , "Overwrite existing data" and "a_fill"
What next (if I am on correct path), it does nothing, I created few contents for abc and then few for xyz , but did not see any autofill.
Please guide me what to do next
Comment #15
jgullstr commentedHello basant,
I'm sorry to hear that, I will try to yet again update the description in the following days. Have you tried to install the feature module that is provided in the project application description? Install that and first create one "work order" content. Then create another "work order" and select the first one in the "Base order" field to see referenced data get loaded into the form.
Thanks for your time and input and I apologize for not being clear enough.
EDIT: I see I failed to answer your question. When set up as you have specified, the module should fetch "a_fill" data from "abc"-nodes into the "a_fill" field, when selecting a node from the "abc_ref" (autocomplete widget) field, on a "xyz" form.
Comment #16
jgullstr commentedAdded follow-up review
Comment #17
jgullstr commentedAdded follow-up review
Comment #18
jgullstr commentedAdded follow-up review
Comment #19
jgullstr commentedAdded review bonus tag
Comment #20
jgullstr commentedComment #21
klausiLooks good to me after a manual review! Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to stBorchert as he might have time to take a final look at this.
Comment #22
stborchertThanks for your contribution, Josef!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.