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

image copy from one button field to another button field

Explorer ,
Nov 03, 2020 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

Views

223

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 ,
Nov 03, 2020 Nov 03, 2020

Copy link to clipboard

Copied

LATEST

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.  

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