Answered
I was watching a tuturial "Extending LiveCycle Forms with Javascript and FormCalc" presented by Thom Parker and the example below works for him but for some reason it is not for me. I saved the template as dynamic like instructed I have all the fields and settings just like on the tuturial. Any clue to why its not working.
I have the event set to "Change" and language "JavaScript". I'm using Adobe Livecycle Designer ES.
The on value = 1 and the off value = 0
if(this.rawValue == 1)
Field1.presence = "Visible";
else
Field1.presence = "Invisible";
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script