I want to show the status name on read mode. For user status I took ENUM type with 'a' for Active and 'i' for Inactive.
Its working properly on Add and Edit, for that I did like below
$crud->field_type('ad_status','dropdown', array('i' => lang('inactive'), 'a' => lang('active')));
Its showing me Active and Inactive texts in dropdown when I go to add or edit.
But, In read mode it's showing me 'a' or 'i' but I want to show Active and Inactive text on read mode. Can any one help me to show the status in texts.
Thanks for your help.!