Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

LiveCycle - javascript hide/show whole table

$
0
0

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,


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>