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

What's wrong with this script?

Ray
Registered: Mar 6 2007
Posts: 48

LiveCycle Designer 8:
 
I wondered what seems to be wrong with this script. When a checkbox is clicked, a textfield is to appear.
 
if (this.rawValue ==1) {
TextField1.presence = "visible";
}else{
TextField1.presence = "invisible";
}
 
All naming protocols are observed.

My Product Information:
LiveCycle Designer, Windows
lsutton
Expert
Registered: Nov 15 2005
Posts: 51
Looks like there is no problem with your script. However, are you saving the form as a Dynamic Form or a Static Form (save as). If it is Static then the code will not appear to work.

Lee.
sconforms
Expert
Registered: Jul 10 2007
Posts: 92
Lee is correct: Your script looks fine so your form is likely being previewed or saved as a static PDF form.

This page contains a few tips on previewing/saving as a dynamic PDF form:

[url]http://forms.stefcameron.com/2006/07/24/previewing-as-dynamic-pdf/[/url]

Stefan Cameron obtained his bachelor's degree with Honors in Computer Science at the University of Ottawa and is a Computer Scientist working on Adobe's LiveCycle server products, in particular on LiveCycle Designer ES for the past 5 years.