Renders HTML select based on the given datatable.
The table may contain 1 or 2 columns. The first column will be used for the option value.
The second column will be used as textual data. If the datatable contains only one column, the options will have no value attribute.

Syntax

Smartsite SXML CopyCode image Copy Code
string html.select(datatable source, string name)
string html.select(datatable source, string name, boolean multiSelect)
string html.select(datatable source, string name, boolean multiSelect, integer size, string selectedValues)
string html.select(datatable source, string name, boolean multiSelect, integer size, string selectedValues, string attributes)
string html.select(datatable source, string name, string selectedValues)

Parameters

Name Data Type Description
source DataTable The source.
name String The name.
multiSelect Boolean If set to true multiple entries can be selected.
size Integer The size of the select list.
selectedValues String A comma-separated list of selected values.
attributes String A string of HTML attributes.

Return Value

Data Type Description
String HTML list of options
SXML