Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Text field formatting


Note
titleNOTE:IMPORTANT

On In the Text Font tab of the field's Properties window, set the "is styled text" to true, and in the Markup drop down, select field to the "HTML" option. "Is styled text" is now deprecated but still functions.


Bold

Code Block
languagejava
themeMidnight
linenumberstrue
<style isBold=\"true\" pdfFontName=\"Helvetica-Bold\"> This becomes bold </style>

...

Code Block
languagejava
themeMidnight
"Thank you for your application for enrolment at Group Colleges Australia (\"GCA\")  Pty Ltd trading as Universal Business School Sydney (UBSS)."

Escaping special characters

Code Block
languagejava
themeMidnight
titleReplace "&" with "&"
"<style isBold=\"true\" pdfFontName=\"Helvetica-Bold\">" +$F{edu_other_unit_id}.trim() + "</style> (" + $F{unit_name}.replaceAll("&","&amp;") + ")"

MSWord Entities

Code Block
languagesql
titleReplacing fancy quotes and long dash
REGEXP_REPLACE(REGEXP_REPLACE(ce.content, '&[lr]dquo;', '"', 'g'), '&ndash;', '-', 'g') as content,

...