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
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Did you save the form as a dynamic form?
Paul
Views
Replies
Total Likes
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".
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Would need to see the form ...can you send it to me at LiveCYcle8@gmail.com
Paul
Views
Replies
Total Likes
I’ll send to you. Thank you.
Margaret Dawn
Views
Replies
Total Likes
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
Views
Replies
Total Likes