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

How do you specify conditional text values using JavaScript?

wsterli
Registered: Jun 27 2008
Posts: 14

Hello,

Id like to have a text field in my My LiveCycle form
populate with a specific text value when it is checked (or on),
and have the text field be blank (no text) if the checkbox
is not checked (or off)

Here is basically how I need the script to work:

If checkbox1 is on then textfield1 = "hello"

If checkbox1 = off then textfield1 = blank (no text)

Any help would be greatly appreciated.

Thank you.

My Product Information:
LiveCycle Designer, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
Review this Acrobat tutorial. It may have a solution.

http://www.epubservice.com/PDF/ChangingVisualObjectProperties.pdf

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.