Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

subform visibility

Nezumi
Level 1
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
Magus069
Correct answer by
Level 10
Level 10

Checkbox1.rawValue == 0

not "0"

View solution in original post

2 Replies
Magus069
Correct answer by
Level 10
Level 10

Checkbox1.rawValue == 0

not "0"

View solution in original post

Nezumi
Level 1
Level 1

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

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

Thanks anyway!