Hello all,
I'm hoping someone can help, I've been struggling with this basic test form in LiveCycle for a few hours and I must be doing something silly wrong.
I've got a form which has 2 radio buttons and 1 text field. Their names are as follows.
Radio button: rb1
Text field: text
The PDF has been saved as a dynamic PDF form. The default language has been changed to Javascript.
The radio button has its 'change' event populated with the following code
---------------------------------------------------------------------------
form1.subform1.rb1.#field[0]::change - (FormCalc, client)
if (this.rawValue==1) then
text.presence = "visible"
else
text.presence = "hidden"
endif
---------------------------------------------------------------------------
However try as I might, clicking the radio buttons has no effect and the text box will not change.
Can anyone shed any light on this as I really am at a loss.
The exact form I'm using is available at http://www.iclebyte.com/test.pdf
Thanks in advance for any repiles.
Put this script in the change event of the checkbox. Be sure to select JavaScript in the Language dropdown above the script editor. The checkbox should be set to 1=On 0 = Off.
if (this.rawValue == 1) //Find out if the checkbox is checked.
{
TextField1.presence = "visible"; //If it is checked then make the text field visible.
}
else
{
TextField1.presence = "invisible"; //If it isn't checked then make the text field invisible .
}