I have the need to bring the elements of a form created with WebForm from a module created by me. The problem is that there is no function within webform give me back the form values clearly. For that I have to add the following functionality, which you could add in a next release

$res = webform_menu_submission_load( $_GET['sid'],$nid);
$webform = node_load($nid);
$form = array();
foreach( $webform->webform['components'] as $component){
$form[$component['form_key']] = $res->data[$component['cid']]['value'];
}

Comments

quicksketch’s picture

Category: task » support
Priority: Critical » Normal
Status: Active » Closed (won't fix)

Support for writing custom code is not provided in the Webform issue queue.

debnath4u’s picture

test