Hi everybody!
Question is title of post
Example:
->fields(....,'custom_field',...)
....
->callback_field('custom_field',array($this,'_custom_field_callback'))
....
public function _custom_field_callback($value = null){
//exmaple
$value = 'some value';
return '<input type="text" maxlength="50" value="'.$value.'" name="name" style="width:462px">';
}
....
And if ->set_rules('custom_field','','callback_validation_custom_field') ( required_fields not working too)
....
public function validation_custom_field($value){
HERE $value EMPTY EVERYTIME but on the page in that field value present !!!
$value = trim($value);
if(empty($value)){
$this->form_validation->set_message(__FUNCTION__,lang('custom error message'));
return FALSE;
}else{
return TRUE;
}
}
Any help?
Thanks