jmChoose
The jmChoose function is used for creating a multiline <select> form element in a Jamroom Control Panel form that allows multiple items to be selected at one time form.tpl element name: form_select
bool
jmChoose
(string $text, string $name, array $data, [string $selected = ''], [string $mult = 'no'], [string $style = false], [string $help = false], [string $sub_title = false], [string $javascript = false])
-
string
$text: Title for form field - i.e. the string to the left in the Control Panel
-
string
$name: Form field "name" value
-
array
$data: Array containing key => value pairs for use as the <options> in the select form
-
string
$selected: Option that will be selected on form load (i.e. existing or default value)
-
string
$mult: Yes/No if multiple options can be selected at one time
-
string
$style: Inline CSS style that will be added into the <select> tag
-
string
$help: Help Text for the form field
-
string
$sub_title: Sub Title that will appear under the title
-
string
$javascript: Javascript that will be added into the <select> tag
|