Exporting entries with fields not displayed in the View
When you export entries from a View, only the fields configured in that View are included in the CSV file. If you need to export additional fields that aren't displayed to visitors, here are two approaches.
Option 1: Create a dedicated export View
The idea is simple: create a second View connected to the same form, configure it with all the fields you want in the export, and link to it from your original View.
Step 1: Create the export View
Create a new View using the same form as your display View. Add all the fields you want included in the export. The layout you choose doesn't matter since visitors won't see this View directly.
Step 2: Enable "Allow Export"
In the export View's Settings, go to the Permissions tab and check "Allow Export". This enables the /csv/ and /tsv/ endpoints for the View.
Step 3: Add a download link to your display View
On your original View (the one visitors browse), add a Custom Content widget with a link to the export View's CSV URL. The URL is your export View's address with /csv/ appended:
<a href="https://yoursite.com/view/my-export-view/csv/">Export to CSV</a>
To find the export View's URL, open the View in the editor and check its slug under the title, or visit the View on the front end and copy the URL from the address bar.
For TSV format instead, replace /csv/ with /tsv/ .
Things to keep in mind
- The export will include all entries from the export View. Search filters applied on your display View do not carry over to the export View.
- If you only need to export the same fields that are already displayed, you don't need a second View. Just enable "Allow Export" on your existing View and add the Export Link widget, which automatically generates the download link and respects any active search filters.
Option 2: Use GravityExport
GravityExport lets you select exactly which form fields to include in the export without needing a second View. You configure it from the form's settings page, and it supports CSV, Excel, and PDF formats.
You can add a download button directly inside your View using a Custom Content field with the GravityExport download URL. For step-by-step instructions, see Adding a download button for entries in GravityView using GravityExport.
GravityExport also supports per-entry downloads by appending ?entry={entry_id} to the download URL, which lets visitors download individual entries rather than the full set.
Which option should I use?
|
|
Separate View + /csv/ | GravityExport |
| Additional plugins needed | None | GravityExport |
| Field selection | Requires a second View | Configure in form settings |
| Export formats | CSV, TSV | CSV, Excel, PDF |
| Per-entry downloads | No | Yes |