Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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,

try this:

if (this.rawValue == "1") {

  this.resolveNode("Table1").presence = "visible";

} else {

  this.resolveNode("Table1").presence = "hidden";

Regards

Dietmar