Workflow Text field
The Text field displays read-only text that can contain HTML tags.
| Attribute | Description | Required |
|---|---|---|
|
label |
The text shown as a label in the user interface. Supports HTML (must be XML-encoded in the form definition). Starting with version 7.1.41, the label can render HTML. When using an HTML value, the string must be XML-encoded; for example:
Must be XML-encoded as:
You can use an online XML entity encoder such as https://coderstoolbox.net/string/#!encoding=xml&action=encode&charset=us_ascii If the data value is set from a workflow transition, the value must not be XML-encoded. |
true |
| name |
Unique field identifier. Two fields cannot have the same name in the same task definition. The name must be unique. |
true |
|
width |
The width of the HTML element. In the case of KCenter, the UI must use width values based on percentages; for example:
|
false |
| data |
When present, an identifier used to dynamically load the text value. |
false |
| visible |
This attribute only makes sense when used in conjunction with an object mapped in the data attribute; the visible value of the object mapped in data is assigned to the form field, causing it to be shown or hidden (the most common use is to hide it). The default value of visible is true. |
false |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE workflow-forms PUBLIC "-//OpenKM//DTD Workflow Forms 2.6//EN"
"http://www.openkm.com/dtd/workflow-forms-2.6.dtd">
<workflow-forms>
<workflow-form task="text test">
<text label="text label" name="consulting_text" width="100px"/>
</workflow-form>
</workflow-forms>