Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Attach Document javascript code not working

New Here ,
Nov 24, 2021 Nov 24, 2021

In the past, I used Flash in Adobe LiveCycle Reader Extensions to make it work. Since Flash is no longer available, I have been unable to update the form. The Javascript code allows you to Attach File, Open Selected File, Remove Selected File, and counts the number of attachments. The form was created in LiveCycle ES4.

TOPICS
Create PDFs , Edit and convert PDFs , How to , PDF forms
2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 24, 2021 Nov 24, 2021

This form works in Adobe Acrobat DC.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2021 Nov 29, 2021

We are unable to attach a form using Adobe Acrobat DC

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2021 Nov 29, 2021

What happens when you attach the form?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2021 Nov 29, 2021

The first time I try, I receive a 'Cannot Save Form Information' error message. I click closed then nothing happens when I click the 'Attach File' button. I've had several people try it with the same results.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2021 Nov 29, 2021

Does you use Adobe Acrobat or Acrobat Reader?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2021 Nov 29, 2021

Adobe Acrobat Reader DC

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2021 Nov 29, 2021

Use Adobe Acrobat, not Acrobat Reader.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2021 Nov 29, 2021

Is Adobe Acrobat free?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2021 Nov 29, 2021

This form is used Agency wide.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2021 Nov 29, 2021

Adobe Acrobat is not free.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2021 Nov 29, 2021

The older  version of the form works fine in Reader. Since we can no longer use LiveCycle Reader Extentions, the form will not long work.

 

How can we get the updated form to work in Reader?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2021 Nov 29, 2021

May be that the form requires special rights. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2021 Nov 29, 2021

If it did require special rights, would it still work in Adobe Acrobat?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2021 Nov 29, 2021

"File Attachement" is a feature that requires "Special Reader Rights", and always has.  When you say "LiveCycle Reader Extentions", you are referring to special "Rights", also called "Extensions".  A Right/Extension is a digital certificate that when applied to a PDF tells Reader that it is ok to allow a certain features. 

 

When you add an "Extension" to a PDF, the feature associated with the extension will work in both Acrobat Pro and Reader. However, other features that also require an extension, but are not applied, are blocked in Acrobat Pro.  

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2021 Nov 29, 2021

Thank you,

How do I get this form to work in Adobe Acrobat Reader?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2021 Nov 29, 2021

I hate to repeat myself, but I'll rephrase. Adding file attachments to a PDF is restricted in Reader. It is not allowed unless the PDF has a Reader Right or Extension that allows file attachments. 

So, in order to attach a file to a PDF in Reader, that PDF needs to have the File Attachment extension added to it. 

 

There are some extensions that come for free. These extensions/rights are added to a PDF using Acrobat Professional. 

To apply the rights, you select the "File > SaveAs Other > Reader Extended PDF" menu item.

 

However, I do not believe these free rights include file attachments. I am not sure about that, you'll have to try it out. If it is not included, then you'll need to purchase it from Adobe.  

 

 

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 30, 2021 Nov 30, 2021

> However, I do not believe these free rights include file attachments. I am not sure about that, you'll have to try it out.

 

I'm sure, and they don't.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 30, 2021 Nov 30, 2021
LATEST

Add the rights with LiveCycle Reader Extensions.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2021 Nov 29, 2021

"How do I get this form to work in Adobe Acrobat Reader?"

You can't since Acrobat Pro can't enable Reader Extensions in a XFA-PDF (made with Designer).

 

Try this "real" PDF file, made with Acrobat Pro, that did not requires any extension to work with Acrobat Reader (versions DC and version XI):

https://documentcloud.adobe.com/link/track?uri=urn:aaid:scds:US:43b01ff3-a660-499b-a259-0e17c4998721


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2021 Nov 29, 2021

Ahh, the Attachment Annotation!!  Very Clever JR 🙂  

This code will need a little modification to work in a LiveCycle form.

 

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines