Question T13030
Visible to All Users

CSV custom name

created 2 years ago

How can I set custom name for csv downloaded from table? Default is results.csv

link to demo: https://surveyjs.io/dashboard/examples/export-survey-results-to-csv-files/reactjs

Clipboard-File-1.png

Comments (1)

    Hello,
    I have just checked the code and we do not have this functionality and we use the default file name that provided by Tabulator.
    I have created a new issue on GitHub. We will review it and likely we will implement it in the future releases.

    Thank you,
    Andrew
    SurveyJS Team

    Answers approved by surveyjs Support

    created 2 years ago

    Hello,
    You can use the downloadOptions.fileName property to specify the name of an exported file for all export types.

    JavaScript
    var vizPanelOptions = { downloadOptions: { fileName: "Sample" } }; var surveyAnalyticsTabulator = new SurveyAnalyticsTabulator.Tabulator(survey, data.Data, vizPanelOptions);

    Example

    Please let me know if you have further questions.