Use Rules to create new content and fill the corresponding node_reference field I want to use a button to create a new article. 

I write two rules to do the following work

snapshot 2


snapshot 3


The snapshot 2 creates a new content; the snapshot 3 fills the field of the content just created.

I can't fill the node reference field; how can i do that?

The button I put is on a different kind of content type.

I hope some body can help me fix this article.
I found how to fix my own problem

$node-&gt;field_YOURFIELD[LANGUAGE_NONE][0]['uid']=$userid;
$node-&gt;field_YOURFIELD[LANGUAGE_NONE][0]['nid']=$nid;