Skip to main content
Participating Frequently
April 19, 2021
Answered

Need the correct Java Script in "file upload" button

  • April 19, 2021
  • 3 replies
  • 2669 views

Hi all, I need the correct java script to let the user of the template upload files when I send the template to them, anyone have it, please?

This topic has been closed for replies.
Correct answer Bernd Alheit

On iOS or Android you can't attach files to PDF files.

3 replies

JR Boulay
Community Expert
Community Expert
April 19, 2021

"I upload the form to the Document Cloud "Create a Template""

Sorry, I'd never used this so I can't advise.

Acrobate du PDF, InDesigner et Photoshopographe
JR Boulay
Community Expert
Community Expert
April 19, 2021

You can use this script as a MouseUp action:

 

var annot = this.addAnnot({
page: this.pageNum,
type: "FileAttachment",
author: "MyName",
contents: "Double-click to open attachment", attachIcon: "PushPin",
point: [500,500],
strokeColor: color.red,
});

Acrobate du PDF, InDesigner et Photoshopographe
Participating Frequently
April 19, 2021

Hello JR,

 

Thanks for the script it works in the acrobat program on the desktop. One last concern is when I upload the form to the Document Cloud "Create a Template", the "upload file" button isn't in there, I mean it's not visible. Please advise.

Bernd Alheit
Community Expert
Community Expert
April 19, 2021

It will not work when you use it at template for Adobe Sign.

Bernd Alheit
Community Expert
Community Expert
April 19, 2021

What want you upload? Where want you upload it?

Participating Frequently
April 19, 2021

Hi Bernd,

I have a fillable form to be sent to my colleague. And after she filled out the form, she needs to attach the attachments needed to complete the form before she can click the submit button. Kindly let me know how to do that, please? Thank you for your prompt reply.