Expand my Community achievements bar.

SOLVED

Making subforms visible

Avatar

Level 7

I've gotten subforms to be hidden and visible before, but I'm really having a problem with this one. And it seems so easy, just two radio buttons. Here's the JavaScript on the click event of the radio buttons:

 

 

switch

(this.rawValue)

{
case "1":
page2.addlAppFlowed.addlApprovals.presence = "hidden";
page2.purFlowed.purchasing.presence = "visible";

break;

case "2":
page2.addlAppFlowed.addlApprovals.presence = "visible";
page2.purFlowed.purchasing.presence = "hidden";

break;

default:

page2.addlAppFlowed.addlApprovals.presence = "hidden";
page2.purFlowed.purchasing.presence = "hidden"

}

I also tried the if/else statements and couldn't get that to work either.

Thanks for your help,

MDawn

1 Accepted Solution

Avatar

Correct answer by
Level 7

Here is PGuerrett's answer from viewing my form:

Ok your issue is that you are setting the container subform page2.purflowed to hidden but when you try to make it visible the expression you are using is page2.purflowed.purchasing .....so th epurcahsing subform is visible but the subform that conatins it is not hence nothing gets shown ......you want to make the subform that you hid visible ......then that setting will be passed to all children of that subform.

Make sense?

Paul

View solution in original post

6 Replies

Avatar

Former Community Member

Did you save the form as a dynamic form?

Paul

Avatar

Level 10

What is the error message you're getting?

All I can think of off-hand is that you are not using "Specify Item Values" on the Binding tab of the exclusion group. You are checking for the values of 1 and 2 but if the radio button values are Yes and No then you need to check for those values instead unless you used the "Specify Item Values".

Avatar

Level 7

No error message. I’ve checked and the values are 1 and 2 for yes and no. When clicking either radio button nothing happens.

Margaret Dawn

Avatar

Former Community Member

Would need to see the form ...can you send it to me at LiveCYcle8@gmail.com

Paul

Avatar

Level 7

I’ll send to you. Thank you.

Margaret Dawn

Avatar

Correct answer by
Level 7

Here is PGuerrett's answer from viewing my form:

Ok your issue is that you are setting the container subform page2.purflowed to hidden but when you try to make it visible the expression you are using is page2.purflowed.purchasing .....so th epurcahsing subform is visible but the subform that conatins it is not hence nothing gets shown ......you want to make the subform that you hid visible ......then that setting will be passed to all children of that subform.

Make sense?

Paul