3 Replies Latest reply on Mar 17, 2014 11:58 AM by Magus069

    show/hidden table by CheckBox

    eugzl Level 1

      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.