What I mean by that is, in the HTML my table view should look like
<td> Field Name <td>
But in the exported csv I want the header/column name to be field_name.
You would use orthogonal data for that - see example here. There the checkboxes are being converted into a string, you could do the same with your fields,
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.