You can use FormCalc rather than Java if you are not familiar with Java. To make things hidden or visible depending on what happens in a dropdown menu you will need to do:
- For the dropdown you will need to assign values to the possible choices in the Object>Binding tab by checking the box next to "Specify Item Values". Now each choice will have a number value and you can use that to determine what happens when each choice is made.
- In the Exit event of the dropdown you put the following code (in FormCalc):
if ($ == 1) then //you replace the number 1 with whatever the value is of your first choice
subform1.presence = "visible" // replace subform1 with whatever the name of your object that you want to make visible is
subform2.presence = "hidden"
elseif ($ ==2) then // you can do as many elseif statements as you want - depending on how many choices you have in your dropdown
subform1.presence = "hidden"
subform2.presence = "visible"
endif
I hope that helps.