OpenWGA 7.6 - WebTML reference

WebTML tags » input

<tml:input type="select | checkbox | radio" >

Purpose:

Provides an input field for choosing predefined values

Description:

The predefined values can be specified multiple ways:

  • As comma-separated list using attribute options
  • As the name of a content item/WebTML variable, holding a list of the available options, using attribute optionsitem

Use the attribute multiple on type "select" to determine if multiple selections should be allowed.

On type "checkbox" multiple selections are always, on type "radio" never allowed.

Value(s):

  • select: renders an HTML list or combo box.
  • checkbox: renders an HTML checkbox <input type="checkbox">.
  • radio: renders an HTML radio box <input type="radio">.

Examples:

An HTML list box (size="5"):
<tml:input type="select" options="German|de,English|en,French|fr" name="lang">size="5"</tml:input>


A checkbox:
<tml:input type="checkbox" options="German|de,English|en,French|fr" name="lang"/>


A radio box:
<tml:input type="radio" options="German|de,English|en,French|fr" name="lang"/>