I am trying to get a subform to be hidden initially and only visible when one of the radio buttons are selected. I have looked and looked on these forums and tried all different combinations but none are working. I have the radio buttons in a different subform then the items want to hide. Any help would be great. Here is an example of what I have. form1.Design1.ITManQuest.ITMan::change - (JavaScript, client) (this is where I put the script) if (this.rawValue == "1") {Design1.Routing.Signatures.ITSignSub.presence = "visible";} else {Design1.Routing.Signatures.ITSignSub.presence = "hidden";}
Solved! Go to Solution.
Views
Replies
Total Likes
Thanks, can download it now
Looks like you are hiding some rows in the following table when you click no on the radio button group at the top? If so, then you need to save the form as a dynamic pdf. At the moment its saved as static pdf. Nothing will happen when you click No since the layout cannot be changed in static pdf's in the way you are attempting to do. Just resave as dynamic and the preview should start working correctly.
Should probably set the ITSignSub subform to hidden initially
Views
Replies
Total Likes
I tried your code snippet on a quick form and didnt find any issues with it. As long as you have the correct layout in your form design then it should work. Make sure you have the code on the RadioButtonList and not on the individual radio buttons and check the subforms are laid out correctly in the hierarchy window. If you are trying to collapse a subform then make sure you are using flowable content in the parent subform. Maybe a sample of the problem might help to see whats going wrong.
Views
Replies
Total Likes
Here is the link for the document. I cut some of the extra stuff out but left all the subforms. Any help would be great. Thanks
Views
Replies
Total Likes
Dont seem to be able to open it. Says not found or do not have access
Views
Replies
Total Likes
Sorry about that. First time I've used that. The below link should work now.
Views
Replies
Total Likes
Did you publish the form? Sorry but still cant see it.
Views
Replies
Total Likes
Could have swarn I published it before. Try this link. I went back and re-did the publishing.
Views
Replies
Total Likes
Thanks, can download it now
Looks like you are hiding some rows in the following table when you click no on the radio button group at the top? If so, then you need to save the form as a dynamic pdf. At the moment its saved as static pdf. Nothing will happen when you click No since the layout cannot be changed in static pdf's in the way you are attempting to do. Just resave as dynamic and the preview should start working correctly.
Should probably set the ITSignSub subform to hidden initially
Views
Replies
Total Likes
Thanks!! That did the trick. Can't believe I forgot that.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies