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

Need the correct Java Script in "file upload" button

New Here ,
Apr 18, 2021 Apr 18, 2021

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?

TOPICS
Create PDFs , How to , JavaScript , PDF forms
2.2K
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
1 ACCEPTED SOLUTION
Community Expert ,
Jul 13, 2022 Jul 13, 2022

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

View solution in original post

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 ,
Apr 18, 2021 Apr 18, 2021

What want you upload? Where want you upload it?

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 ,
Apr 19, 2021 Apr 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.

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 ,
Apr 19, 2021 Apr 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 Photoshoptographe
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 ,
Apr 19, 2021 Apr 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.

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 ,
Apr 19, 2021 Apr 19, 2021

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

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 ,
Apr 20, 2021 Apr 20, 2021

Hi Bernd,

The Java Script above from JR works in my Acrobat program on the desktop. But when I send the form using the "request signature" tool, the upload button is not visible. I need my colleague to attach documents on the form itself. Thanks for your prompt reply.

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 ,
Apr 20, 2021 Apr 20, 2021

When you use "request signature" you use Adobe Sign.

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 ,
Apr 21, 2021 Apr 21, 2021

Hey Bernd,

Does it allow the user to attach files in 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
Community Expert ,
Apr 21, 2021 Apr 21, 2021

Post the question in the forum for Adobe Sign.

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 ,
Apr 21, 2021 Apr 21, 2021

Does Adobe Sign allow the users to attach files in 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 ,
Apr 26, 2021 Apr 26, 2021

I didn't get any answers on this in the Adobe sign forum.

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 ,
Jul 13, 2022 Jul 13, 2022

HI,

This java script is working from  PC but not from mobile phone.

Because i have a Adobe Acrobat instaled in my phone but when i click on the "attachement button" it doesnt work.

Can you advise me how can it work from mobile device?

 

Thank you,

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
LEGEND ,
Jul 13, 2022 Jul 13, 2022

Acrobat Reader in a mobile device is much more limited. I doubt this is possible. 

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 ,
Jul 13, 2022 Jul 13, 2022

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

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 ,
Jul 13, 2022 Jul 13, 2022
on Android
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
Explorer ,
Sep 11, 2023 Sep 11, 2023
LATEST

You made that look too easy.  Suppose I wanted to do something a little simplier.  Like, create a button that lets you choose the jpg/pdf and leaves a thumbnail on the box instead of a pushpin.  I will still be able to see the actual attachment as usual in the Attachments pane.  Can u help me with a button to do that?

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 ,
Apr 19, 2021 Apr 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 Photoshoptographe
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