I have a cck node with a nodereference field that is allowed to refer only profile node types. I have a profile node already created, when I set the default value using the PHP. The node id of this node is: 10.
I set:
return array(
0 => array('nid' => 10),
);
At the admin page from the field edition, after submition it shows the correct node at the default value field, as well the php code I inserted, however, at the edit page of the cck node that has this field, the field isn't autocompleted.
I doesn't work with neighter user, the node with nid 10 exists.
The cck node also have date fields.
Comments
Comment #1
rmanola commentedI have figured out that I wanted the default value to show up when I edit the node, however, that default value is only applicable when I create a new node. Is there a way of allowing the default value to be set at the edit for of a node?