Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Check box to hide row in table

Avatar

Level 3

I have table and check box.
I need when is checked then to unhidde some rows, and when is unchecked to be hided?

Thank you

1 Accepted Solution

Avatar

Correct answer by
Level 2

I've done this on my form. What I did was make subform and then place all the objects I wanted to be hidden and then made visible inside. I then used this code on the button:

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

  oTargetField = this.resolveNode("subform name here");

            oTargetField.presence = "hidden"

            }

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

  oTargetField = this.resolveNode("Subform name here");

            oTargetField.presence = "visible"

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

I've done this on my form. What I did was make subform and then place all the objects I wanted to be hidden and then made visible inside. I then used this code on the button:

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

  oTargetField = this.resolveNode("subform name here");

            oTargetField.presence = "hidden"

            }

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

  oTargetField = this.resolveNode("Subform name here");

            oTargetField.presence = "visible"