How to hide content within span tag from exporting to CSV

How to hide content within span tag from exporting to CSV

texqastexqas Posts: 6Questions: 3Answers: 0
edited December 2018 in Free community support

Hello, I have CSV HTML5 button enabled on my data table to export data to csv. I have customized one column of my data table to display asterisk next to a string under certain circumstances and this asterisk is inside a span tag but it's also being exported to csv even though it's not part of the original data. Is there a way i can customize csv export to ignore the content inside span tag?

Thanks.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @texqas ,

    You'll need to use orthogonal data for that. For example, this here converts the value of a checkbox on export - so you'll need to do something like that,

    Cheers,

    Colin

  • texqastexqas Posts: 6Questions: 3Answers: 0

    Thank you so much.That did the trick. I didn't know about "orthogonal data" but now that I do it seems like an incredibly useful feature.

This discussion has been closed.