Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

unable to save filled-in Pdf forms

Avatar

Level 2

Hi, I created a Dynamic-XML form using LiveCycle Designer ES2, reopened the file in Acrobat X Pro and saved it with extended Reader rights, as this is common practice. The resulting pdf file correctly displays the green bar, confirming that data typed into this form can be saved. However, after saving and reopening the document it is empty again, no matter which pc and which version of Adobe Reader I am using. I also tried out the “distribute” workaround with the same result. Modifying the security settings will not do it either. I know there is quite a number of threads with similar issues. Does anybody have a practicable solution?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,  It seems you have the whole content of your form on the master page, things get a bit special when working with master pages and I guess this is one of them.

I have moved the content of your form to a interactive page and it is retaining the state of the buttons.

https://sites.google.com/site/livecycledesignercookbooks/home/80638.pdf?attredirects=0&d=1

If they do have to be on the master page then we probably do need the hidden fields to retain the status.

It also seems like the form should be a table with a repeating row, rather than duplicating the content so much.  The way you have it makes the form very large.  You should also not have the "embed image data" set when the form goes live, this also makes it very large and on my machine very slow.

Hope this helps

Bruce

View solution in original post

17 Replies

Avatar

Level 10

Hi,

What sort of binding does your form use?  Can you share your form?

Regards

Bruce

Avatar

Level 2

Hi again and sorry for bothering you once more. There is no data binding configured in the LC document properties. I shared the file on several different pcs for testing, but the problem is the same on all of them. It should be compatible with Adobe Reader 9 or higher. I tested with Adobe Reader version X and XI, it says that data typed in can be saved, but it won't do it. So I am kinda stuck with it again. I would appreciate your continued feedback. Thanks.

Avatar

Level 10

Hi, It is only the bound data that is saved, was there a reason you removed the binding from your fields?

Avatar

Level 2

Hi Bruce, thank you for the speedy solution. Since I had never modified the binding, I was not aware that it was set to "no binding" from the beginning. I just tested it on one of the fields, and it works perfectly now! Once again I appreciate your assistance. Good job! Have a nice day!

Avatar

Level 2

Hi Bruce, sorry, but I need to get back to you with one more question: I fixed the data binding for all the fields, so they seem to save correctly now. However, I still could not find out how to save the current visible up- or down-states of the toggle buttons, too. Could you give me an idea how to configure that? Thanks in advance.

Avatar

Level 10

In Form Properties under run time what option do you have set under "Preserve scripting changes to form when saved", sounds like you should have it set to automatically.

1488223_pastedImage_0.png

Otherwise, you can add some code to initialise the button state, which would involve storing the button state in a hidden field.

Avatar

Level 2

Yes, I checked this before, it has been on "Automatically" all the time. Is it possible that some adjustments need to be made when I reopen the file in Acrobat, before I save it with extended Reader rights? I also tried to apply the data binding to the toggle buttons and / or their subform container, but it won't work.

Avatar

Level 2

Hi again. I have been trying out different settings in the meantime, none of which seem to work for that purpose. So I wanted to get back to you and ask, if you could give me details about how to add a "hidden field", as you suggested. I suppose, it needs to be on the same subform as each row of toggle buttons. Is this correct? Can it be done for the complete row at a time, or would I need a hidden field for every single button? Which would be the correct syntax targeting the button states "up" or "down"? I would appreciate one more feedback on that, thank you for your patience.

Avatar

Level 10

Have a look at this sample, if it is saving the state of the buttons as you want, then there must be something else happening in your form that resets the state.

https://sites.google.com/site/livecycledesignercookbooks/ImageButton.repeat.pdf?attredirects=0&d=1

Do you have any code in that runs when the form opens?

Avatar

Level 2

Hi, thank you for your reply. No, I did not knowingly configure anything that runs when I reopen the document. Where would I have to look for it, just in case?  You gave me the same attachment already in the previous thread custom checkbox or button Everything is configured accordingly and the toggle buttons work as intended. However, after saving the file with extended Reader rights, the buttons will not retain their state when I save and reopen my work. Which means, I need to manually set every button back to its last state every time I continue working with it in Adobe Reader, which is kind of time consuming. It would be essential to continue exactly where I left off when I saved the document. You mentioned in your previous reply Re that there is a workaround for this problem, configuring a button in a  "hidden field" in combination with a script to initialize the button state. If this is a practicable option, could you please give me some more details on it? Can it be done for all buttons in the form at a time, or would I need to do it for every single button subform separately? Could you please post a sample script targeting the "up" and "down" states of the toggle buttons? Thanks in advance.

P.S.: Preserve scripting changes is set to "automatically", but it won't do it.

Avatar

Level 10

Hi, Maybe it would be quicker if you could post a link to your form, so we can have look.  The link I posted above has the additional table containing the image buttons, do these retain the state when re-opened for you? Because, if I understand the what you are saying they seem to work for me.

Avatar

Level 2

Hi Bruce, thank you for your speedy reply. I tested the form you posted, your toggle button states save perfectly, mine won't. I am trying to find a way to post a sample of my form for review, but there seems to be no way to upload it. My form is not online, so I cannot send a link. Any suggestions?

Avatar

Level 10

Hi,  I generally use Google Docs, but Dropbox seems popular.  Any of the file sharing sites will do, just post a link to the file in this thread.

Avatar

Correct answer by
Level 10

Hi,  It seems you have the whole content of your form on the master page, things get a bit special when working with master pages and I guess this is one of them.

I have moved the content of your form to a interactive page and it is retaining the state of the buttons.

https://sites.google.com/site/livecycledesignercookbooks/home/80638.pdf?attredirects=0&d=1

If they do have to be on the master page then we probably do need the hidden fields to retain the status.

It also seems like the form should be a table with a repeating row, rather than duplicating the content so much.  The way you have it makes the form very large.  You should also not have the "embed image data" set when the form goes live, this also makes it very large and on my machine very slow.

Hope this helps

Bruce

Avatar

Level 2

Hi Bruce, thank you for your comments. Obviously, it was just a problem of the hierarchy structure. As you suggested, I moved all the elements off the Masterpage and finally everything is saving as intended now. I had realized that the page was kind of slow. Unchecking the “embed” option as you suggested will help to speed it up a little. Later on, I’ll find out how to place those repeated toggle buttons on a table structure. Once again, thank you for your time. I appreciate your patience very much, assisting me with all those configuration problems.

Good Job! Have a nice day!

Avatar

Level 1

hi there this is mussie I am looking for adobe