Metadata Option element

The option element is only used in combination with Metadata 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 redered.

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 property-groups PUBLIC "-//OpenKM//DTD Property Groups 2.3//EN"
                                 "http://www.openkm.com/dtd/property-groups-2.3.dtd">
<property-groups>
  <property-group label="Consulting" name="okg:consulting">
    <select label="select label"  name="okp:consulting.select" type="simple">
      <option label="one" value="001" />
      <option label="two" value="002" selected="true" />
      <option label="three" value="003" />
     </select>
  </property-group>
</property-groups>