Skip to content

HTML template

Placeholders

The HTML template can contain placeholders which will be replaced by the row's field's name or caption or value at runtime.

  • %FIELDNAME%
    Will be replaced by the value of the field in each row
  • %FIELDNAME.caption%
    Will be replaced by the field's caption
  • %FIELDNAME.value%
    same as %FIELDNAME%
  • %FIELDNAME.name%
    Name of the field itself

Special placeholders:

  • %_pk%
    Primary key of the row

Examples

Primary Key

1
var html = '<h5>%_pk%</h5>';

Value of field reference

1
var html = '<p>%reference%</p>';

Caption and value of field reference

1
var html = '<p>%reference.caption%: %reference%</p>';

Formatted caption and value of field reference

1
var html = '<p><small>%reference.caption%</small><br />%reference%</p>';

See also