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.
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
Comment #1
inst CreditAttribution: inst commentedHi,
would need the same thing.
Can somebody help?
thanks!
Comment #2
Vako CreditAttribution: Vako commentedIn \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.
Comment #3
inst CreditAttribution: inst commentedHi,
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
Comment #4
Vako CreditAttribution: Vako commented1st make a backup of the file webform_report.inc
Open the file on your local machine in a text editor and change the line:
to
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.
Comment #5
inst CreditAttribution: inst commentedah, great - thanks!
I will test this.
Comment #6
yuvaraju.an CreditAttribution: yuvaraju.an commentedHi,
for me above solution changes only the text to download all but not all the components are downloading.