In my HTML form I have the below as a set of radio buttons, depending on what radio button you select depends on what the next form is revealed
The name of the inputs must be the same to belong to the same group. Then the others will be automatically deselected when one is clicked.