Workflow Option element

The option element is only used in combination with Workflow Select field. The option value represents a list of distinct values to select.

AttributeDescriptionRequired

label

The text shown as label in the user interface.

true

value

Unique value identifier.

Two options can't have the same value. Value must be unique.

true

selected

When present, it specifies that an option should be pre-selected when the form is rendered.

false

Parent :

Basic select with selected option

  • attribute selected=true, when present, it specifies that an option should be pre-selected when the page loads.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE workflow-forms PUBLIC "-//OpenKM//DTD Workflow Forms 2.4//EN"
                                "http://www.openkm.com/dtd/workflow-forms-2.4.dtd">
<workflow-forms>
  <workflow-form task="textarea test">
    <select label="select label"  name="test" type="simple">
<option label="one" value="001" /> <option label="two" value="002" selected="true" /> <option label="three" value="003" /> </select> </workflow-form> </workflow-forms>