$data = array(
'name' => $value['field_id'],
'placeholder' => $value['placeholder'],
...
);
echo form_input($data);
echo form_input($data)
и echo form_textarea($data);
<?php
if(*****){
echo form_textarea($data);
}
else{
echo form_input($data);
}
?>