Hi, I tried to add email as readonly field / readonly in grocery crud
in the add form, the callback is works fine

but when I click save, the callback is ignored

this is my code, is I am missing something? thanks
// the function
function tema(){
$crud = new grocery_CRUD();
$crud->set_table('design_theme')
->add_fields('theme','email')
->edit_fields('theme','email','status')
->field_type('email','readonly')
->display_as('theme','Tema')
->display_as('theme_date','Tanggal Tema')
->callback_add_field('email',array($this,'mail_callbacks'));
$output = $crud->render();
$this->kekgwpeduliaja($output);
}
// the callback
function mail_callbacks(){
$user = $this->ion_auth->user()->row();
$mail = $user->email;
return '<input type="text" id="email" name="email" value="'.$mail.'" disabled />';
}
