Disable checkout pane based on cart

Is it possible to disable a checkout pane based on the contents of a cart. Example if product a is in the cart then an additional checkout pane is shown where the user needs to provide additional information.

Is this the best way to achieve this?

Basically when purchasing this product it is a requirement to capture additional information about the user which will not be needed for other products.

Any Ideas?

Posted: Oct 25, 2011