By fa7c0n on
Dear Drupal Community
I have the following scenario. I have build a party/event database with drupal. For simplicity, let's say I only have 2 content types. Locations & Parties. When users enter a party , they can also enter a node ref to a Location (where the event takes place). Users are NOT required to enter a location node reference when they enter a party because the users can't be sure that a corresponding Location node exists. So, to solve this problem I allow users to add adress data to event nodes.
Is it possible to fill in the event adress data fields based on the data in the node reference if the enter a corresponding loction node reference?
Thx
Comments
anyone?
anyone?
_
You should be able to use the php code textbox in the default value fieldset of a field to pull in any default data you like. You can do a node_load with the nid of the nodeference field and pull in any data you wish.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Thanks, I will check this
Thanks, I will check this out. (it might take a while to return feedback). Thanks