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

on checkbox activate: make textfield editable

mading
Registered: Jun 12 2008
Posts: 20
Answered

Hi,

I've got a checkbox and a text field. I'd like the checkbox editable as soon as the checkbox is activated (checked). How can I do that (sry I'm new to LCD).

Thanks in advance

Mading

My Product Information:
LiveCycle Designer, Windows
StevenD
Registered: Oct 6 2006
Posts: 368
Put this script in the change event of the checkbox. Be sure to select JavaScript in the Language dropdown above the script editor.

if (this.rawValue == 1) //Find out if the checkbox is checked.
{
TextField1.access = "open"; //If it is checked then make the text field editable.
}
else
{
TextField1.access = "readOnly"; //If it isn't checked then make the text field read only.
}

Find out more about the access scripting property and other script help from the LiveCycle Designer Help. Just type in access in the Index tab of the help.

StevenD

mading
Registered: Jun 12 2008
Posts: 20
Hi,

thank you very much!