Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

show/hidden table by CheckBox

$
0
0

Hi All.

 

I have very simple code for CheckBoxes that located in three rows of Table1:

if (Table1.Row1.CheckBox1.rawValue == 1 || Table1.Row2.CheckBox2.rawValue == 1 || Table1.Row3.CheckBox3.rawValue == 1)

{

    Table2.presence = "visible";

}

else if (Table1.Row1.CheckBox1.rawValue == 0 && Table1.Row2.CheckBox2.rawValue == 0 && Table1.Row3.CheckBox3.rawValue == 0)

{

    Table2.presence = "hidden";

}

 

When check CheckBox1, CheckBox2, CheckBox3 works fine. But when I uncheck one of CheckBox the Table2 is hidden. I would like hidden Table2 only if all CheckBox is unchecked. How to fix a problem?

 

Thanks.


Viewing all articles
Browse latest Browse all 1160

Trending Articles



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