These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Hiding a text field using a Check box

30011754
Registered: Jan 6 2010
Posts: 13
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";

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The "visible" and "invisible" values need to be lower case.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

30011754
Registered: Jan 6 2010
Posts: 13
Accepted Answer
WOW!! You saved my day :) I was going crazy trying to figure it out. It's working now. Thank You and your tutorial is amazing learning so much!!! Thank you again!