Hello siSINka,
This certainly would be possible, first you would need to import the relevant images to the document using Javascript. For an example, please see the attached document. This can be done throught the JS console (Ctrl+J) by entering the following:
Note that the "IconName" is unique, if you import another image and give it the same name it will overwrite the old one. Running this script will open a file select dialog, where you can navigate to the image you wish to import.
Once the images are imported you can include them into the dropdown and image fields, as you can see in the attached document.
The Dropdown field will need to have a Custom Action in the Value Validation area setup, which will look similar to this:
Code: Select all
var idx = 0;
if (event.target.getItemAt(1, false) == event.value)
idx = 1;
var inames = new Array("icon1", "icon2")
getField("ImageField").buttonSetIcon(getIcon(inames[idx]));
I hope this helps!
You do not have the required permissions to view the files attached to this post.