This sample opens and closes different field groups depending on the choice selected in the radio button field.
Sample Image
Each choice in the radio button field will open their own field groups and close all others, as shown in the image below.
The below gif shows how this looks in action.
Sample Code
Notes
Refer to the Tutorial page, on how to add scripts to your app.