These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

LC Forms Error when importing forms into a portfolio *Pic included

Tech264
Registered: Apr 4 2008
Posts: 111
Answered

I finally finished some forms for my employer that were all designed in LiveCycle Designer ES 8.2. I had multiple text fields that were multi-lined but added the script for autoexpansion:

Initialize

this.font.size = "0pt";

I took all the PDF forms (about 15 of them) and added them into Adobe Acrobat Pro 9 Extended and created a portfolio. Everything went fine using the wizard they provide. However, once I open the PDF I get this error message that you see posted in the picture below that mentions my particular script. Just wondering if I did something wrong or this LiveCycle script is not compatible with portfolio.

Any feedback once again is appreciated. Thank you.

http://i169.photobucket.com/albums/u203/tech264/Portfolio.jpg

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Does it work correctly just loaded into Acrobat 9 Pro? It should,

However, this code is not strictly FormCalc. It's actually JavaScript, although it should work in the FormCalc context. Try changing the language to JavaScript and see what happens.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Tech264
Registered: Apr 4 2008
Posts: 111
Thank you Thomp, that's exactly what the problem was. I changed all the multifields that had that script from Formcalc to Javascript recreated the portfolio and no longer did I see the error message.

My next task is linking certain field names to populate to all the forms for example, name, date of birth, case id, etc.

Thank you once again.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If you get you next task figured out, then please post something about it. Sharing data between attached forms has been a feature people have been asking about since Acrobat 5. And there are no good solutions. I worked out one for "Packages" in Acrobat 8, but the "Portfolios" in Acrobat 9 killed it. It'd sure be nice if Adobe would put this feature in Acrobat. And there is an additional problem with Portfolios, there is currently no way for the ActionScript in the Navigator to talk to the embedded files. This can only be done from JavaScript on the Root PDF, which of course you can't see.

I think that eventually Adobe will add better communication between the Navigator and the PDF JavaScript environment, maybe even very soon. But the problem here is that you'll have to write Your own ActionScript Navigator as the top level entry for all the common data in the embedded forms.

Good Luck,
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script