Versions Compared

Key

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

...

Table of Contents

Introduction

Definition
English
borderColorgreen
borderWidth1
titleBGColor#ddffcc
borderStylesolid
title
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.

Javascript Condition Formatter Properties

Image AddedImage Removed

Figure 1: Javascript Condition Formatter Properties


NameDescription
Conditions

In

short

summary, when

this

the specified rule is true, execute this formatting.

Every row in the configured datalist column will be processed with these conditions

respective to its current record id

.

Use

the

{

fieldName

fieldId}

prefix

to retrieve column value

, eg: {userTelNumber

{fieldId} is a Form field ID from the specified form in the current datalist, so for example: form field ID "name" should be written as {name}.

It is also possible to

inject

use hash

variables

variable here.

Usage example:

Image Removed
Image Added

Example result:

Image Modified

 


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

Image Removed

Image Added

Result:

Image Modified

 

 

...