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
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
Hello,
You can use the downloadOptions.fileName property to specify the name of an exported file for all export types.
JavaScriptvar vizPanelOptions = {
downloadOptions: {
fileName: "Sample"
}
};
var surveyAnalyticsTabulator = new SurveyAnalyticsTabulator.Tabulator(survey, data.Data, vizPanelOptions);
Please let me know if you have further questions.
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