[eluser]obiron2[/eluser]
Hi guys.
Using CI 1.6.3
I am prepping data for a form as follows:
Code:
$formfield => array(
'name'=>'date_1',
'type'=>'dropdown',
'options'=>array('1'=>'one','2'=>'Two'),
'label'=>'Preferred Date'
);
Then calling the field in the view as follows
Code:
case "dropdown":
echo form_dropdown($formfield['name'],$formfield['options']);
break;
The dropdown is populated correctly but the label always contains
get_form_label($data)
For other field types I simply call $formfield and the form helper correctly puts the label out
Code:
case "txtarea":
echo form_textarea($formfield);
but this doesn't seem to work for dropdowns. Also I can't see where it calls the
get_form_label($data) for dropdowns or any other fields
NOTE: in 1.6.3, I don't thing the field_label() function exisits
any help would be appreciated
Obiron
break;[/quote]