Yes, should be possible using custom code.
Here is a related question Passing collection name to form field