Is there a way to remove my default text field value when clicked in pdf?

I am working in Jaspersoft studio 6.17.0 to generate pdf with editable fields containing default text value (like a placeholder), to instruct respondents how to fill out the field but I can't get the text disappear when the respondent clicks the field. Is this possible to do it in Jasper studio (by some Jasper property or script code) ?

I found this property cnet.sf.jasperreports.export.pdf.javascript but I dont know how to use it

 

<reportElement positionType="Float" x="86" y="93" width="458" height="14" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" uuid="6ea407a5-51bf-4fe7-998e-ab5fd76ab924">
   <property name="com.jaspersoft.studio.unit.y" value="cm"/>
   <property name="net.sf.jasperreports.export.pdf.field.type" value="Text"/>
   <property name="net.sf.jasperreports.export.pdf.field.text.multiline" value="false"/>
   <property name="net.sf.jasperreports.print.keep.full.text" value="true"/>
   <property name="com.jaspersoft.studio.unit.x" value="px"/>
   <propertyExpression name="net.sf.jasperreports.export.pdf.field.value"><![CDATA["Instructional text"]]></propertyExpression>
</reportElement>
redha.rebouh's picture
Joined: Feb 11 2021 - 1:36am
Last seen: 12 months 1 day ago

0 Answers:

No answers yet
Feedback
randomness