Please someone help, I want to know how to set default value for dropdown during add state, I know that if record exists already on database it selects dropdown automatically during edit state, but during add record, I would like to keep default value.
$crud->field_type("status",'dropdown',array( '0'=>'rejected', '1'=>'approved','2'=>'Yet to moderate', '3'=>'Pending') );
By default I would like to select pending that is 3, please help me how this can be done.