Incorporate dropdown list of nodes into a webform to link webform results to said content I am trying to link the results from a webform comment survey to content that was previously generated within a site so that the webform_submissions table in the database shows the node those answers are attached to.

I am planning to use a "node reference" dropdown to the content type I need, but that's as far as I've gone.

Any ideas or suggestions are most appreciated.
You can create your own predefined lists by using the webform_webform_select_options_info() hook.

&lt;?php
/**
* Implements hook_webform_select_options_info().
*/
function yourmodule_webform_select_options_info() {
  $items = array();
  $items['contentchoice'] = array(
    'title' =&gt; t('Content Choice'),
    'options callback' =&gt; 'webform_options_yournodes',
  );
  return $items;
}


Then generate your list of nodes using

/**
* Webform options info callback.
*/
function webform_options_yournodes() {
  $mynodes = array(
  //build your array up here
  );
  return $mynodes;
}