Description
Create a string holding the HTML code of an select, given a name, a topic type, a selected value and a label for the null option.
Examples
[%echo html_select("turnover", 2445, $company->get_turnover_range(), "No info"); %]
|
Parameters4
Coding name |
name
|
Description |
The name attribute of the select element.
|
Position |
1
|
Type |
String(Primitive type)
|
Coding name |
tt_id
|
Description |
The id of the topic type of which the instances should be the options of the select.
|
Position |
2
|
Type |
Topic reference(Custom type)
|
Coding name |
value
|
Position |
3
|
Type |
|
Coding name |
null_label
|
Description |
The label of the null option in the select box.
|
Position |
4
|
Type |
String(Primitive type)
|
|