Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Hidden Elements Not Showing When PDF Saves

Avatar

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

Avatar

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
xrum
Level 3

16-12-2008

make sure the code is also on the "initialize" event, as well as on change.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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.

Avatar

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";

}