Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Display/hide subform based on Reader version

Avatar

Level 2

I have a subform box that I want to appear only if the user is using Reader version less than 9, but am having trouble coming up with the JavaScript formula to make the box appear/not appear, as well as what Event to use.

The box is on the first page below some unrelated instructions (i.e., not at the very top), although it could be at the top if I could figure out how to move the instructions to the top if the subform does not appear.

Hope this make sense, and I appreciate any help. Thanks!!               ~Carol

1 Reply

Avatar

Level 10

Hi,

You can use xfa.host.version to get the version of reader, so something like the following in the initialise event; (assuming your box (I assume you mean subform) is called CheckReaderVersion).

if (parseFloat(xfa.host.version) < 9))

{

    CheckReaderVersion.presence = "visible";

}


Regards

Bruce