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
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.