Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
borderColorgreen
borderWidth1
titleBGColor#ddffcc
borderStylesolid
titleDefinition

The Javascript Condition Formatter allows you to transform column data based on user-defined conditions.

...

Panel
borderColorpurple
borderWidth1
titleBGColor#ddccff
borderStylesolid
titleNew Feature

This is a new feature in Joget Workflow v6.

Image Modified

Figure 1: Javascript Condition Formatter Properties

NameDescription
Conditions

In short, when this rule is true, execute this formatting.

...

borderColor#cedfff
borderWidth1
titleBGColor#cedfff
titleExample

...

.

Every row in the datalist will be processed with these conditions respective to its current record id.

Use the {fieldName} prefix to retrieve column value, eg: {userTelNumber}.

It is also possible to inject hash variables here.

Usage example:

Image Added

Example result:

Image Added

 

When there is a conflict/multiple match between conditions, the first matched condition will take precedence.

Image Added

Result:

Image Added