Selection Dependant Fields

Selection Dependant Fields

Hi,

I am wondering how I can create a selection dependent field:

For example:

Type: if A is selected then sub-list A is shown below for further selection or if B is selected then sub-list B is shown?

Thanks