Hi.
I am trying to use the callback_edit_field function to conditionally make some fields read-only. My code works correctly when a field needs to be made read-only, but not when the field needs to remain editable.
My code is like this:
$this->grocery_crud->callback_edit_field('my-text-field',array($this,'make_field_readonly'));
$this->grocery_crud->callback_edit_field('my-drop-down-list-field',array($this,'make_field_readonly'));
With this code, when the field is not made read-only (else { // do nothing } ) , the field is rendered as blank on the edit form. Is there a way for the callback_edit_field function to 'do nothing', i.e. making the fields appear exactly as they would have done if the callback_edit_field function was not used?
Thanks!