How to customize the Excel export file name

When exporting your DataTables View to an Excel file, the default file name is a combination of the View name and your website name. You can change the file name with the following code:

You can add your preferred file name on line 3 between the single quotes:

Editing the function to change the name of the Excel export file

If you're not sure where to add code samples, please see the following article: Where to put code samples

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.