hi ceroberoz
in the call (as above) - $this->grocery_crud->field_type('upload2', 'hidden', $upload2);
the 3rd parameter of the function is used for setting a default value.
Correct me if i am wrong on the same. What you want is that based on the drop down selection of yours, you want either of the field to be enabled / visible for upload.
If that is the case then you need to do it by custom javascript.
Create your javascript where it binds to the element (drop down on which you want to act on change of its value)
$crud->set_js(<your script file>);
In that what you can do is.. hide / disable both the fields by default on load.
Then based on the selection of the value from dropdown, enable the respected field.
A suggestion - Do not use the jquery ready method. It wont work as jquery will be loaded after your script is loaded. Instead of the same use window.onload method. inside the method you can play around with jquery no problem cuz the function will be called when window is loaded and by that time jquery will also be loaded.