Export form to CSV file
Posted: Wed Jun 18, 2025 1:39 pm
Hello,
I want to add a new action button besides the print button. It should allow downloading the contents of the form as a CSV file. I read the following post for exporting form as CSV file:
viewtopic.php?t=10071
I used following code to display the action button:
How do I get the form data exported to CSV file and then start the download ?
Thanks,
Nadir
I want to add a new action button besides the print button. It should allow downloading the contents of the form as a CSV file. I read the following post for exporting form as CSV file:
viewtopic.php?t=10071
I used following code to display the action button:
Code: Select all
if(nuFormType() == 'browse'){
nuAddActionButton('DownloadCSV',
'',
'nuSetProperty("browse_sql",nuCurrentProperties().browse_sql); nuRunPHP("DownloadCSV")',
'Download to Excel',
'fa-fw fa fa-file-excel fa-lg');
}
Thanks,
Nadir