Avatar

Level 10

Hi,

I am a little concerned when I see the root node is "TopmostSubform"...

Did you import the form from Word or an existing PDF?

For dynamic behaviour like show/hiding objects and such you need to save the form as a Dynamic XML Form in the save-as dialog:

LC SaveAs Dialog.png

If you CAN save as a Dynamic XML Form then fine. If not (eg if the option is greyed out) then you will not be able to get dynamic behaviour to work.

On the basis that you can save the form as dynamic, the script goes in the click event of the radio button exclusion group. In your screen shot you have selected the exclusion group (which includes both radio buttons), you just need to select the click event from the Show dropdown.

Now in relation to the script it is basically good to go. You just need to change "yourDetails" to the name of the subform. I can't see that in the screenshot, but you will be able to see this in the hierarchy view.

One last word of caution. Be careful when copying and pasting script. It is worthwhile spending a little time to try and get to understand what is going on. Becuase I don't know the structure of your form, a cut and paste is rarely going to work straight off.

Hope that helps,

Niall