title: How to hide textField for specified exporter. For example for not HTML
body: <p>I have a <em>JasperReports jrxml</em> file which has a hyperlink inside a textField element.</p>
  
  <p>I do not want to show this hyperlink in anything other than the HTML view because the link does not work in excel, PDF, word, etc. and does not make sense to show.</p>
  
  <p>I have read the <a href="http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/faq.html#FAQ208" rel="nofollow noreferrer">faq</a> with the properties but it just confused me because it does not talk about hiding a <em>textField</em> at all, just "bands" for headers and footers.</p>
  
  <p>Here is the text field I want to hide when not HTML:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;textField hyperlinkType="ReportExecution"&gt;
      &lt;reportElement style="Report_Param_Value_Link" mode="Opaque" x="400" y="0" width="161" height="20"/&gt;
      &lt;textElement/&gt;
      &lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA[Boolean.TRUE.equals($P{LAST_WEEK}) ? "View WTD" : "View last week"]]&gt;&lt;/textFieldExpression&gt;
      &lt;hyperlinkParameter name="noMenu"&gt;
          &lt;hyperlinkParameterExpression&gt;&lt;![CDATA["true"]]&gt;&lt;/hyperlinkParameterExpression&gt;
      &lt;/hyperlinkParameter&gt;
      &lt;hyperlinkParameter name="reportUnit"&gt;
      &lt;hyperlinkParameterExpression&gt;&lt;![CDATA["repo:/Reports/Operations/Business_Support/Subreports/Business_Support_Performance_Dashboard"]]&gt;&lt;/hyperlinkParameterExpression&gt;
      &lt;/hyperlinkParameter&gt;
      &lt;hyperlinkParameter name="LAST_WEEK"&gt;
          &lt;hyperlinkParameterExpression&gt;&lt;![CDATA[Boolean.valueOf(!Boolean.TRUE.equals($P{LAST_WEEK})).toString()]]&gt;&lt;/hyperlinkParameterExpression&gt;
      &lt;/hyperlinkParameter&gt;
  &lt;/textField&gt;
  </code></pre>