Import Icon to Button
I have created a form that only I use on my computer. I want to import pictures to various buttons. I have the following code added to a Mouse Up trigger in a Run a JavaScript action on a button. All of the button names are C01Picture, C02Picture, etc. However it doesn't work. Can you please advise me as to what I'm doing wrong?
var a = getField("C01Picture");
var b = getField("C02Picture");
var c = getField("C03Picture");
var d = getField("C04Picture");
var e = getField("C05Picture");
var f = getField("C06Picture");
a.buttonImportIcon("/C/Users/MyComputer/Desktop/Pictures/01.jpg");
b.buttonImportIcon("/C/Users/MyComputer/Desktop/Pictures/02.jpg");
c.buttonImportIcon("/C/Users/MyComputer/Desktop/Pictures/03.jpg");
d.buttonImportIcon("/C/Users/MyComputer/Desktop/Pictures/04.jpg");
e.buttonImportIcon("/C/Users/MyComputer/Desktop/Pictures/05.jpg");
f.buttonImportIcon("/C/Users/MyComputer/Desktop/Pictures/06.jpg");