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

Need the correct Java Script in "file upload" button

New Here ,
Apr 18, 2021 Apr 18, 2021

Copy link to clipboard

Copied

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

Views

1.4K

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Jul 13, 2022 Jul 13, 2022

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

Votes

Translate

Translate
Community Expert ,
Apr 18, 2021 Apr 18, 2021

Copy link to clipboard

Copied

What want you upload? Where want you upload it?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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,
});

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hey Bernd,

Does it allow the user to attach files in the form?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Post the question in the forum for Adobe Sign.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Does Adobe Sign allow the users to attach files in the form?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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,

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

on Android

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

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

Votes

Translate

Translate

Report

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