Regarding "Dependent ComboBox"

Regarding “Dependent ComboBox”, how to achieve the following function?
When I choose option1 from ComboBox, then I have three input value boxes, which depend on “option1” , for user to input value.
When I choose option2 from ComboxBox, then I have four input value boxes, which depend on “opton2” , for user to input value.