Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
quicksketchSupport for writing custom code is not provided in the Webform issue queue.
Comment #2
debnath4u CreditAttribution: debnath4u commentedtest