LiveCycle - javascript hide/show whole table

Avatar

16-12-2015

I feel like I am going crazy,

I have a check box and a table on a LiveCycle PDF Form, when I select the checkbox I want a table to appear, and when unticked, disappear.

I have simplified the document to show CheckBox1 (Checkbox from Standard menu) and Table1 (Table from Standard menu), I have enabled javascript in the scripting window for all events on the change event for the checkbox entered the following code


if(this.rawValue == 0){


   form1.Table1.presence = "hidden";


} else {


   form1.Table1.presence = "visible";


}



If I set the initialize script to


form1.Table1.presence = "hidden";



The table is not visible as expected but the checkbox method does nothing... I've watched a video on YouTube and followed every last detail, even copying his example and my system does nothing!!! arghhhghhghghgh...

What have I missed? Thanks,

View Entire Topic

Avatar

Avatar
Applaud 5
Level 1
alassir
Level 1

Likes

0 likes

Total Posts

17 posts

Correct reply

2 solutions
Top badges earned
Applaud 5
Affirm 1
View profile

Avatar
Applaud 5
Level 1
alassir
Level 1

Likes

0 likes

Total Posts

17 posts

Correct reply

2 solutions
Top badges earned
Applaud 5
Affirm 1
View profile
alassir
Level 1

16-12-2015

Hi Bozely,

the code is working on my machine - no clue why it doesn't work on yours.

Which LC Version are you using?

Best

Dietmar