Hi all. I'm a newbie on LiveCycle and I'm having trouble on saving a pdf without the presaved data.
I'm working a project in which the pdf form must generate a number based on Epoch & Unix Timestamp.
The pdf should generate a number every time a user(s) opened the pdf and when a user decide to close the pdf, a save dialog box should appear.
I successfully created a form using Adobe Acrobat DC Pro but I can't do the same on LiveCycle.
Is there any codes or "Clear form" on LiveCycle before saving to pdf?
Well, my fault. Once you've entered the code line press [Ctrl]+[Enter].
The populated timestamp in the text field will be deleted und the console returns null.
Now you can save the form or Reader-enable it, if you need the save function in Adobe Reader too.
It depends on you Acrobat version, how to to this. In Acrobat XI its under File > Save As > Reader Extended PDF > Enable Additional Features.
Thank you for your help radzmar.
I can't seem to make it work, I did put the line and pressed enter but nothing happens. I don't know how to Reader-enabled a pdf so I have a silly question thought I think it's possible, or maybe not.
I'm playing with the document actions; document will close and document will save. I pasted the line that you gave in "doc will close", and bwalah, it worked and I thought I have the pdf that I want but it's not
I opened up the console but where should I paste the code?
Well, the problem here is, that you'll have to Reader-enable the forms once but after that you script won't fire anymore, right?!
The workaround is to reset the field via Acrobat's console before Reader-enabling the form.
this.xfa.form.form1.resolveNode("#subform").AgreementNo.rawValue = null;