Skip to main content
Inspiring
Nov 3, 2020 3:27 PM UTC
Question

image copy from one button field to another button field

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

Karl Heinz  Kremer
Community Expert
Community Expert
Nov 3, 2020 4:38 PM UTC

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.  

Translate