forms

New Here ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

I have hundreds of PDF files edited as forms. The forms contain a button that is linked with javascript code. Is it possible to make a sweeping change in all the code of the files, without entering each file individually

TOPICS
PDF forms

Views

123

Likes

translate

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

Most Valuable Participant , Feb 02, 2021 Feb 02, 2021
It's actually called "Button1". It's important to use the correct field name. If you have Acrobat Pro you can do it by running an Action on the files that executes the following JavaScript command:   this.getField("Button1").setAction("MouseUp", "NewCodeGoesHere");   Replace "NewCodeGoesHere" with a string representation of the new code to use.

Likes

translate

Translate

Translate
Most Valuable Participant ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

Depends. What kind of change?

Likes

translate

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
Adobe Community Professional ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

Hi,

 

Are you able to share a file so we can see the make up as it may or may not be possible? (It probably isn't going to be easy though)

 

Malcolm

Likes

translate

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 ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

Likes

translate

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 ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

Likes

translate

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
Most Valuable Participant ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

OK, and what changes do you want to make to it?

Likes

translate

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 ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

there is a button called "botton1" which contain java script code,

i want to change the code in it

Likes

translate

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
Most Valuable Participant ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

It's actually called "Button1". It's important to use the correct field name.

If you have Acrobat Pro you can do it by running an Action on the files that executes the following JavaScript command:

 

this.getField("Button1").setAction("MouseUp", "NewCodeGoesHere");

 

Replace "NewCodeGoesHere" with a string representation of the new code to use.

Likes

translate

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 ,
Feb 03, 2021 Feb 03, 2021

Copy link to clipboard

Copied

it works great.

another question:

what if i want to add to the action wizard the command that saves the document as "reader extended save"?

Likes

translate

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 ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

what if i want to add to the action wizard the command that saves the document as "reader extended save"?

Likes

translate

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
Adobe Community Professional ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

Not possible.

Likes

translate

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 ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

isn't  there a acript that can make this action?

Likes

translate

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
Most Valuable Participant ,
Feb 04, 2021 Feb 04, 2021

Copy link to clipboard

Copied

No. Adobe didn't want users to be able to automate this task, as it's was selling a special server tool that does it. However, the Reader Rights are not needed any longer, if the users use Reader DC. In fact, they can actually cause issues, so it's better not to apply them.

Likes

translate

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