Jump to content
We've recently updated our Privacy Statement, available here ×

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


redha.rebouh

Recommended Posts

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>

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...