Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.inc |
— | — | @@ -274,10 +274,13 @@ |
275 | 275 | } |
276 | 276 | |
277 | 277 | function textInputWithAutocompleteHTML($cur_value, $input_name, $is_mandatory, $is_disabled, $other_args) { |
278 | | - // if 'no autocomplete' was specified, call the regular text entry instead |
| 278 | + // if 'no autocomplete' was specified, print a regular text entry instead |
279 | 279 | if (array_key_exists('no autocomplete', $other_args) && |
280 | 280 | $other_args['no autocomplete'] == true) |
281 | 281 | return SFFormInputs::textEntryHTML($cur_value, $input_name, $is_mandatory, $is_disabled, $other_args); |
| 282 | + // if a set of values was specified, print a dropdown instead |
| 283 | + if (array_key_exists('possible_values', $other_args) && $other_args['possible_values'] != null) |
| 284 | + return SFFormInputs::dropdownHTML($cur_value, $input_name, $is_mandatory, $is_disabled, $other_args); |
282 | 285 | |
283 | 286 | global $sfgTabIndex, $sfgFieldNum; |
284 | 287 | |