Postponed
Project:
References
Version:
7.x-2.x-dev
Component:
Code: node_reference
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2011 at 17:23 UTC
Updated:
12 Dec 2012 at 22:18 UTC
Jump to comment: Most recent
Comments
Comment #1
fgmNo plan for any new feature in D7 until we have a stable 1.0 version equivalent with the D6 versions. Only then can we afford to consider new features, if none of the "designed for D7" moduels like Relation comes out.
Comment #2
geerlingguy commentedIn the meantime, is there any way I could populate the field with a default through a
hook_form_alter()?For example, would it be possible to set a #default_value for the node reference field (or a user reference, for that matter), somehow?:
Edit: I also tried building the reference with an autocomplete text field, but that didn't work:
Comment #3
geerlingguy commentedUpdate: I had to set the #default_value in the following way:
It was helpful for me to look at the structure of
node_reference_autocomplete_value()in node_reference.module.Comment #4
Zachmo commentedWould love to see this implemented some day!
Comment #5
sol roth commentedI also require this feature and will be using hook form alter in the meantime.
Comment #6
off commentedgeerlingguy, thank you!
Working prepopulate node reference fileld with node clone module:
Comment #7
thommyboy commentedi would need that too- in d6 when only ONE value was available for the dropdown this one was selected by default- right now there is an "- Select a value -" option selected as default :(