Hi again & apologies in the delay in my response.Here's an example of
the script I've used both visibility of specific fields and also
subforms - I found this script easier as I often have questions which,
depending on the answer, will require different fields to be visible. In
all cases the script is located on the "change"
event.form1.S2.ScanningSubform.ScanToEmail.presence =
"hidden";form1.S2.ScanningSubform.ScanToOther.presence = "hidden";switch
(xfa.event.newText){ case "Emailed":
form1.S2....