Skip to main content
diagram

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 the serverRender property), the content is converted to plain text by the type conversion system: Configuration example:
Risksheet does not fully support editing rich text fields. Editing a rich text field through the grid may strip line breaks and HTML formatting from the work item XML, causing all text to appear concatenated. Use column type text (multi-line plain text) as the recommended alternative when editing capability is needed. For preserving formatting, use serverRender instead (read-only).

Server Render Display

Use the serverRender property to display rich text with full HTML formatting. Server render columns execute a Velocity expression on the server to produce the HTML output:
The serverRender property produces a read-only display. There is no way to edit rich text formatting from within the Risksheet grid. Users must edit rich text content in Polarion’s native work item editor, then refresh the Risksheet to see the updated content.

Velocity Snippets for Rich Text

The serverRender 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:
Replace 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:
The field ID used in $item.fields().get('...') must match the Polarion custom field ID exactly. Check your project’s custom field definitions in the Polarion administration panel, or see Field Mapping for details on how Polarion fields map to Risksheet columns.

Rich Text with Images

For fields containing embedded images (such as symbol libraries, annotated diagrams, or visual risk descriptions):
Rich text fields with images are a commonly requested feature. The serverRender approach is the recommended method for displaying images in the grid. The images render at their original size within the cell, which may cause layout issues if images are large. See the section on controlling image display below for CSS-based sizing.

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 through serverRender 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:
This configuration provides:
  • 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
Last modified on July 10, 2026