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.
when I had download a .csv file, then so many fields are available, how to Customize this if I need only 2 or 3 fields when are downloaded
as created, compleated, changed, serial no .
just line submission list on the web, you have options to display which fields is a header .
Comment | File | Size | Author |
---|---|---|---|
#2 | Screenshot from 2018-02-16 05-07-26.png | 157.38 KB | bucefal91 |
Screenshot from 2018-02-16 12:40:41.png | 55.17 KB | gourav.yadav |
Comments
Comment #2
bucefal91 CreditAttribution: bucefal91 at Websolutions Agency commentedThere is an option to enable/disable columns. See the screen shot below.
Comment #3
gourav.yadav CreditAttribution: gourav.yadav commented@bucefal91 , Yes but it's required a configuration in each form, how to set global?
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@gourav.yadav You are going to use a form alter hook and change the exported element's #default-value via custom code.
Comment #5
bucefal91 CreditAttribution: bucefal91 at Websolutions Agency commentedAlso, I think it's worth to mention here that there is https://www.drupal.org/project/webform_views - Webform views integration. Maybe you will be able to achieve some kind of pre-defined export config by building a custom view and then using some kind of CSV views exporter.
I am the maintainer of that module. Not instantly but i will be able to solve issues if you file them on that module's issue queue :)
Comment #6
gourav.yadav CreditAttribution: gourav.yadav commented@jrockowitz please provide any example code (form_id = webform_results_export) , because when i load a kint($form) i unable to find fields.