// This must be a hyperlink
$(".exportCsv").on('click', function (event) {
// CSV
exportTableToCSV.apply(this, [$('#exportData>table'), 'Export-List.csv']);
// IF CSV, don't do event.preventDefault() or return false
// We actually need this to be a typical hyperlink
});
});
I do not see any screenshot with your previous reply. Could you please upload the screenshot to any file sharing service and send me the link to see it.
Based on the screenshot you shared there is no evidence that this is Toolset problem or as shared before Toolset do not offer any view result export feature and hence you coded it using custom JS code.
As per our support policy we do not offer support for such custom edits but still I would like to give a try once and for that I will require admin access details and problem URL where you added your view.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
The issue was at the following line of the code with the custom JS code you added:
txt = """ + txt.replace(/"/g, """") + """;
The custom JS code you added to your view's JS section, I've changed the following line of the code from:
txt = """ + txt.replace(/"/g, """") + """;
To:
txt = '"' + txt.replace(/"/g, '""') + '"';
The was a pure custom programming request and for further assistance on that I suggest you should contact our certified partners as to support such custom edits is beyond the scope of our support policy:
=> https://toolset.com/contractors/