Display Modes
Rich text fields can be displayed in two modes within the Risksheet grid. The choice depends on whether you need to preserve formatting or enable editing.Standard Text Display
When a rich text field is bound to a standard column (without theserverRender property), the content is converted to plain text by the type conversion system:
Configuration example:
Server Render Display
Use theserverRender property to display rich text with full HTML formatting. Server render columns execute a Velocity expression on the server to produce the HTML output:
Velocity Snippets for Rich Text
TheserverRender property accepts Velocity expressions that are evaluated server-side. The following snippets are the standard patterns for rendering rich text fields.
Basic Rich Text Field Rendering
Use$item.fields().get('fieldID') with the .render().htmlFor().forFrame() chain:
description with the actual Polarion field ID of your rich text field.
Common Field Aliases
Some standard Polarion fields have shortcut methods:Custom Rich Text Fields
For custom rich text fields defined on your work item type:Rich Text with Images
For fields containing embedded images (such as symbol libraries, annotated diagrams, or visual risk descriptions):Column Properties for Rich Text
Standard Text Column Properties
Server Render Column Properties
When using
serverRender, the bindings property is not required for the display itself — the Velocity expression retrieves the data directly. However, if the column needs to participate in sorting or filtering, a bindings may still be useful.Controlling Image Display
Images rendered throughserverRender may appear at their original dimensions, which can disrupt the grid layout. Control image sizing using CSS in the top panel template or via custom styles:
See the Top Panel Template reference for details on injecting custom CSS.
Autocomplete Behavior
Text columns (non-server-render) support autocomplete suggestions when editing:
When
suggestTextFields is enabled, the text editor shows suggestions based on existing values in the same column across all rows. This is useful for maintaining consistency in plain text descriptions but does not apply to server-rendered columns.
Export Behavior
Excel Export
Rich text columns export differently based on their configuration:PDF Export
The exact rendering of rich text in PDF exports depends on your custom PDF export script configuration. Complex HTML content (tables within tables, deeply nested lists) may not render as expected in the plain text conversion.
Known Limitations
Complete Example
An FMEA configuration with a mix of editable plain text and read-only rich text columns:- A formatted, read-only view of the description field with full HTML rendering
- A parallel editable plain text version for quick edits (loses formatting)
- Server-rendered mitigation notes with preserved formatting
- An editable task description for downstream items
Related Pages
- Server Render Columns — full reference for server-rendered columns and Velocity expressions
- Velocity Template Context — available Velocity context variables and methods
- Column Type Reference — overview of all available column types
- Data Types — field type reference and type conversion behavior
- Supported Field Types — complete list of Polarion field types
- Field Mapping — how Polarion fields map to Risksheet columns
- Top Panel Template — inject custom CSS for image sizing