Skip to main content
Inspiring
November 3, 2020
Question

image copy from one button field to another button field

  • November 3, 2020
  • 1 reply
  • 423 views

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

This topic has been closed for replies.

1 reply

Karl Heinz  Kremer
Community Expert
Community Expert
November 3, 2020

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.