Expand my Community achievements bar.

Hidden table not showing once user saves and reopens

Avatar

Level 2

Hello everyone,

I am trying to create a dynamic PDF and I used the "hidden" option for one of my tables so that it is only available for the user if he/she answers yes/no to a question.

I found this question on another section of the forum but I am a little lost on what I am supposed to do. Here is a link to the other forum post http://forums.adobe.com/thread/340479. One of the replys suggests that there is an option in adobe reader 9 to save the state of the document but I have been unable to find this option. If it a global change on the document level then it would work since all my users will have acrobat reader 9 available to them. However if they are required to change any settings it might be a better if there was another solution.

Here is my code for the yes/no button and event click script

form1.A.HurdleRateSubform.YesNo2::click - (JavaScript, client)

if (this.rawValue == 1)

{

HurdleSubform.Table2.presence = "visible"; \

HurdleSubform.HurdleNoteSubform.presence = "visible";

}

else

{

HurdleSubform.Table2.presence = "hidden";

HurdleSubform.HurdleNoteSubform.presence = "hidden";

}

form1.A.HurdleSubform.YesNo2.Yes::click - (FormCalc, client)

form1.A.HurdleSubform.YesNo2.No::click - (FormCalc, client)

If you guys have any suggestion on how i can fix this issue or if it has already been answered a link to the answer I would greatly appreciate it.

Thank you in advance,

Roger

1 Reply

Avatar

Level 2

I've answered my own question. The reason that it wasnt working was because you need to have the code in the initialize code for the script too. Otherwise it only works when you "change" the state since that was where the code originally was.

Thanks for your help if you saw this. Sorry for the dumb moment. At times like this I want sing homer simpson's I am so smart song http://www.youtube.com/watch?v=DhrfhjLd9e4