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

Script syntax

patra
Registered: Oct 19 2006
Posts: 270

How will be the script in the case below?
If there is a value into Text fieldA then textFieldB becomes visible!

Thanks

My Product Information:
LiveCycle Designer, Windows
R_Boyd
Registered: Nov 1 2007
Posts: 151
Set the default presence of TextFieldB to Hidden.
Ensure that the form is saved as a dynamic form.
Change language to JavaScript

In the exit event of TextFieldA enter the following script

if (TextFieldA.rawValue == null || TextFieldA.rawValue == ""){TextFieldB.presence = "hidden";}else{TextFieldB.presence = "visible";}
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
This can be done with the change event and following script.

if (xfa.event.newText == "AAA"){TextfieldB.presence = "visible";}else{TextfieldB.presence = "hidden";}

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs