I have a form with dropdown menu "Dropdown1" and an empty place "Image1". In dropdown menu there are values "A" and "B". I'd like to see (my) "PictureA" in the "Image1" field when value "A" is selected, and "PictureB" when "B" is selected.
this.getField("Text1").value = "My text A";
this.getField("Text1").value = "My text B";
this.getField("Text1").value = "";
Can something similar be done for pictures?
If so, how do I "get" individual images into the form?
If this is not possible, could it be solved by ("homemade") stamps?
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: