Expand my Community achievements bar.

SOLVED

subform visibility

Avatar

Level 1

Hello,

Newb question (⌒_⌒;)

Could someone please help me to get right JavaScript code for the following case?

I'd like to have a button that sets visibility of subform depending on checkbox value. If checkbox is unchecked then subform will be hidden otherwise it will stay visible.

I've tried something like this but it's not working:


topmostSubform.Page1.Subform1.Param.Buttons.Hide::click - (JavaScript, client)


if (topmostSubform.Page1.Subform1.Param.base.Checkbox1.rawValue == "0") then {this.resolveNode("topmostSubform.Page1.Subform1.Param.base").presence = "hidden";}

1 Accepted Solution

Avatar

Correct answer by
Level 10

Checkbox1.rawValue == 0

not "0"

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Checkbox1.rawValue == 0

not "0"

Avatar

Level 1

damn it! Those little quotation marks.....

I already did figure it out awhile after I posted my question

Thanks anyway!