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 .

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gourav.yadav created an issue. See original summary.

bucefal91’s picture

There is an option to enable/disable columns. See the screen shot below.

Screenshot.

gourav.yadav’s picture

@bucefal91 , Yes but it's required a configuration in each form, how to set global?

jrockowitz’s picture

@gourav.yadav You are going to use a form alter hook and change the exported element's #default-value via custom code.

bucefal91’s picture

Status: Active » Closed (works as designed)

Also, 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 :)

gourav.yadav’s picture

@jrockowitz please provide any example code (form_id = webform_results_export) , because when i load a kint($form) i unable to find fields.