Closed (fixed)
Project:
References
Version:
7.x-2.0-beta3
Component:
Code: node_reference
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2011 at 03:11 UTC
Updated:
12 Oct 2011 at 12:21 UTC
I have custom types named book and purchase, each book has a node reference url to create a new purchase node type which receives the book being purchase, this works fine. The purchase type has an 'amount' field that basically shows the price listed on the book node. Is there a way for me fill up this price field automatically when a user clicks on the purchase book reference url?
I might just be taking the wrong approach, I would appreciate any help.
Thanks in advance.
eric.
Comments
Comment #1
akamaus commentedI think it's a job for hook_node_prepare(). You could follow the reference and fill the needed field.
Comment #2
karens commentedAnswered above.