Workflow Button field
Buttons are typically used in workflow forms for decision-making, for example: an "Approve" button and a "Deny" button.
| Attribute | Description | Required |
|---|---|---|
| label |
The text shown as a label in the user interface. |
true |
| name |
Unique field identifier. Two fields cannot have the same name in the same task definition. The name must be unique. |
true |
| transition | If present, the process instance token follows the indicated transition when the button is clicked. | false |
| confirmation | If present, clicking the button shows a confirmation popup with the specified message text. | false |
| validate | Whether to validate the form before submitting. Default is true. |
false |
| style |
Icon style applied to the button. Possible values:
|
false |
| color |
Color applied to the button. Possible values:
|
false |
| width |
The width of the HTML element. In the case of KCenter, the UI must use width values based on percentages; for example:
|
false |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE workflow-forms PUBLIC "-//OpenKM//DTD Workflow Forms 2.7//EN"
"http://www.openkm.com/dtd/workflow-forms-2.7.dtd">
<workflow-forms>
<workflow-form task="evaluate price">
<button name="deny" label="Deny" transition="deny"/>
</workflow-form>
</workflow-forms>