Hi,
I have a webform report with 22 fields... i could show in the report only 10 (no more space in the screen.. obviosly) but i would like to change the "Download as csv" button to download all fields.

Any idea?

Comments

inst’s picture

Hi,
would need the same thing.
Can somebody help?

thanks!

Vako’s picture

In \sites\all\modules\webform_report\webform_report.inc:
search for "Download as" and change it to your preference.
But if you update the module in the future, you need to remember to do this change again.

inst’s picture

Hi,
ok, the hardcoded style so.
You mean here:

if (!$node->options['hide_csv']) {
$output .= l(t('Download as CSV'), 'node/' . arg(1) . '/csv') . '

';
}

But how should I change it?

thanks

Vako’s picture

1st make a backup of the file webform_report.inc
Open the file on your local machine in a text editor and change the line:

$output .= l(t('Download as CSV'), 'node/' . arg(1) . '/csv') . '

to

$output .= l(t('Download all fields'), 'node/' . arg(1) . '/csv') . '

Save it and upload it to the server, overwriting the file that is already there.
you might have to clear the cache or refresh the screen to see the change.

inst’s picture

ah, great - thanks!
I will test this.

yuvaraju.an’s picture

Issue summary: View changes

Hi,

for me above solution changes only the text to download all but not all the components are downloading.