Hide portion of field from print/pdf/excel

Hide portion of field from print/pdf/excel

kenderkender Posts: 3Questions: 1Answers: 1

Description of problem: I have a date field, and to allow it to sort accurately I had to put in a hidden span with the date in a YYYYMMDD format, this works fine on the front end, but when trying to export in pdf or excel / csv it prints this hidden span content as well. Is there a way to, say... hide anything wrapped in a specific html element, or better, with a specific class from printing?

This question has an accepted answers - jump to answer

Answers

  • kenderkender Posts: 3Questions: 1Answers: 1
    Answer ✓

    Nevermind, I was looking at the wrong problem

    I decided to use the moment plugin to sort the date which resolved my printing issue

    I cant find a way to mark as resolved

  • allanallan Posts: 56,819Questions: 1Answers: 9,029 Site admin

    You can't self mark questions as answered. I've done it now though :).

    Allan

Sign In or Register to comment.