Hi,
I have created a form with hidden component called status, with default value of Pending, and i created report of that using webform report module. But i need a cancel button in webform report that should change the staus value to canceled.
// include meta components
$components[-1] = array('name' => t('Submitted By User'), 'type' => 'string');
$components[-2] = array('name' => t('Submission Date'), 'type' => 'date');
$components[-3] = array('name' => t('Submission Time'), 'type' => 'time');
$components[-4] = array('name' => t('Submission IP Address'), 'type' => 'string');
$components[-5] = array('name' => t('Edit Link'), 'type' => 'link');
$components[-6] = array('name' => t('View Link'), 'type' => 'link');
$components[-7] = array('name' => t('Delete Link'), 'type' => 'link');
$components[-8] = array('name' => t('Submission ID'), 'type' => 'string');
$components[-9] = array('name' => t('cancel'), 'type' => 'string');
i added the component but how to call the alter function to chage the status value of the webform based on sid.
Please help me.
Thanking you
Comment | File | Size | Author |
---|---|---|---|
#1 | cancel button.jpg | 118.46 KB | yuvaraju.an |
Comments
Comment #1
yuvaraju.an CreditAttribution: yuvaraju.an commented