Highlighted

image copy from one button field to another button field

Community Beginner ,
Nov 03, 2020

Copy link to clipboard

Copied

I select an image for a button field. I want that image to be copied to another button field automatically. Another button is read only. Any scirp for automatic copy

 

I am using Adobe DC Prof

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

31

Likes

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

image copy from one button field to another button field

Community Beginner ,
Nov 03, 2020

Copy link to clipboard

Copied

I select an image for a button field. I want that image to be copied to another button field automatically. Another button is read only. Any scirp for automatic copy

 

I am using Adobe DC Prof

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

32

Likes

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
Nov 03, 2020 0
Adobe Community Professional ,
Nov 03, 2020

Copy link to clipboard

Copied

The following script will copy a button image from one button to another button:

 

// copy the button image from from one button to another button
this.getField("Button2").buttonSetIcon(this.getField("Button1").buttonGetIcon());

 

Depending on the rest of your form, you would call this from the function that changes the button image for the first button.  

Likes

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
Reply
Loading...
Nov 03, 2020 0