Highlighted

Hidden Elements Not Showing When PDF Saves

Avatar

Guest

16-12-2008

I am using some check boxes that show and hide certain elements of my form when checked/unchecked. This all works great. The problem I am having is when someone fills the form out and then saves it as a .pdf when it is reopened the hidden fields do not show. Any ideas on some code I can put in to prevent this. I want the saved form to show exactly as it did when the user closed it.

Replies

Highlighted

pguerett

16-12-2008

You will need to keep track of the state of the form and reset it when it is opened. There was a feature added in version 9 to take care of this but that means all users have to use version 9 of Acrobat/Reader.
Highlighted

Avatar

Guest

16-12-2008

Tanyar, your suggestion worked for the check boxes. Thank you so much! I do have one other thing. I also have some drop down boxes that, depending on what is selected show or hide different fields. If I choose an option from the drop down that shows a field then when I save and re-open the .pdf this field is not shown anymore. I have tried putting the code in the change and in initialize as suggested but it does not work on my dropdown. Anyone have any ideas? This is the code that I am using on the dropdown.



var myVal = this.rawValue;

myVal = xfa.event.newText;

if (myVal == "Filename Design")

{

OnlineMediaData.FilenameDesign.presence = "visible";

OnlineMediaData.MetadataDesign.presence = "hidden";

OnlineMediaData.FTPTransfer.presence = "hidden";

OnlineMediaData.MediaServerTransfer.presence = "hidden";

OnlineMediaData.OnlineMediaOther.presence = "hidden";

}



if (myVal == "Metadata Design")

{

OnlineMediaData.FilenameDesign.presence = "hidden";

OnlineMediaData.MetadataDesign.presence = "visible";

OnlineMediaData.FTPTransfer.presence = "hidden";

OnlineMediaData.MediaServerTransfer.presence = "hidden";

OnlineMediaData.LogTimecodes.presence = "hidden";

OnlineMediaData.OnlineMediaOther.presence = "hidden";

}



if (myVal == "Transfer to FTP Server")

{

OnlineMediaData.FilenameDesign.presence = "hidden";

OnlineMediaData.MetadataDesign.presence = "hidden";

OnlineMediaData.FTPTransfer.presence = "visible";

OnlineMediaData.MediaServerTransfer.presence = "hidden";

OnlineMediaData.LogTimecodes.presence = "hidden";

OnlineMediaData.OnlineMediaOther.presence = "hidden";

}



if (myVal == "Transfer to Media Server")

{

OnlineMediaData.FilenameDesign.presence = "hidden";

OnlineMediaData.MetadataDesign.presence = "hidden";

OnlineMediaData.FTPTransfer.presence = "hidden";

OnlineMediaData.MediaServerTransfer.presence = "visible";

OnlineMediaData.LogTimecodes.presence = "hidden";

OnlineMediaData.OnlineMediaOther.presence = "hidden";

}



if (myVal == "Log Timecodes")

{

OnlineMediaData.FilenameDesign.presence = "hidden";

OnlineMediaData.MetadataDesign.presence = "hidden";

OnlineMediaData.FTPTransfer.presence = "hidden";

OnlineMediaData.MediaServerTransfer.presence = "hidden";

OnlineMediaData.LogTimecodes.presence = "visible";

OnlineMediaData.OnlineMediaOther.presence = "hidden";

}



if (myVal == "Other")

{

OnlineMediaData.FilenameDesign.presence = "hidden";

OnlineMediaData.MetadataDesign.presence = "hidden";

OnlineMediaData.FTPTransfer.presence = "hidden";

OnlineMediaData.MediaServerTransfer.presence = "hidden";

OnlineMediaData.LogTimecodes.presence = "hidden";

OnlineMediaData.OnlineMediaOther.presence = "visible";

}