I need a visible but "not changeable" field in the edit form. The basic idea es simple: the user can edit the data, he see all the values in the edit form, but only can modify some values.
In my opinion this example is would be perfect:
function example_edit_fixed(){
$crud = new grocery_CRUD();
$crud->set_table('city');
$crud->set_relation('country_id','country','country_name');
$crud->columns('country','city','another_field');
$crud->fields('country','city','another_field_1','another_field_2','another_field_3');
$crud->fixed_fields('country','city');
$crud->required_fields('country','city','another_field_1','another_field_2','another_field_3');
$output = $crud->render();
$this->_example_output($output);
}
The basic idea es simple in the html form:
<input type=hidden name=country_id value=49><input type=text value='Germany' disabled>
I try to do this with callback_edit_field but in function edit_field_callback_1($value, $primary_key) the value is the "foreign key". In the example: i can receive "49" but no the "germany"
Sorry for my bad english
Recargs