I am VERY new to Drupal (Drupal 7).
I am stuck at webform alteration step.
So, I have created a content type - News.
The News content type has a node reference field for referencing a webform.
Created a view (for various reasons) to list the news items.
Now, when the news item details page is displayed, I want to update a couple of webform fields. For example, the webform subject's field needs to be pre-populated with the News item title.
I understand that there is hook_form_alter hook to update the webform, but I can't use that hook as I won't have access to the other News content type fields.
I tried template_preprocess_node hook, but looks like that is called after the webform has been rendered as the field values were not updated.
Any help would be much appreciated.