Setting the presence of a subform w/ a check box

Avatar

23-07-2008

I have a form with a table used to fill out information for different payment options. There are several check boxes and then a few fields which I have put into a subform associated with the check boxes. The code I have to control the presence is:



topmostSubform.Page1.CheckBox1::change - (JavaScript, client)



if (CheckBox1.rawValue == 1) {

sub1.presence = "visible";

}else if (CheckBox1.rawValue == 0) {

sub1.presence = "hidden";

}

Replies

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

23-07-2008

I wouldn't use the change event .....I would use the exit event.

Avatar

23-07-2008

That doesn't change whether the code works or not. Which it still doesn't.