This sample code shows and hides fields depending on the choices selected in a checkbox.
Sample Image
Sample Code
Notes
Make sure to match the Field code, with the Field code written in the code.
Refer to the Tutorial page, on how to add scripts to your app.