Metadata Checkbox field

Checkbox

Best used to represent boolean data:

AttributeDescriptionRequired
label

The text shown as a label in the user interface.

true

name

Unique field identifier

Two metadata can't have the same name. Name must be unique.

The name must start with "okp:".

It's a good practice to use a metadata group name as basis for a metadata field name. For example use "okg:consulting" has been used for field name "okp:consulting.checkbox", changing "okg" to "okp". That helps to find out the metada group based on metadata field name.

Please, use only letters, numbers and underscore: "0-9a-zA-Z_".

true

width

The width of the HTML element.

false

height The height of the HTML element. false
description

General description.

false

readonly Set field will not be able to be modified in user interface. By default the value is "false".

false

dbColumnSize

Set the size of the database field where the value is stored.

By default, fields are stored in a database column with 128 characters size. Because your data length might be bigger than 128 characters the administrator should update the default column size.

Take a look at Metadata XML definition documentation section for a deep explanation about metadata storage in OpenKM database,

 

Child elements:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 3.7//EN"
                                 "http://www.openkm.com/dtd/property-groups-3.7.dtd">
<property-groups>
  <property-group label="Consulting" name="okg:consulting">
    <checkbox label="Checkbox label" name="okp:consulting.checkbox" />
  </property-group>
</property-groups>