Hello All -
I recently posted a question about changing font colors when a certain image is selected, and was given this rule as a solution, and it works perfectly.
var color = '';
switch (GetFileName(Field("headerImage"))){
case "red.pdf":
color = "PANTONE Red 032 C";
break;
case "blue.pdf":
color = "PANTONE 2945 C";
break;
case "gray.pdf":
color = "PANTONE 430 C";
break;
default:
color = "PANTONE 266 C";
}
return '<color name="' + color + '">' + ToUpper(Field("dynamicSubOne")) + '</color>';
Since then, there was a request for additional functionality. Now ,in addition to the above, I need to return a unique image as well to a picframe ("logo") that is also associated with the color themes. I've made a number of attempts, but I'm not able to get the actual image to change. Any advice on how to associate a unique pic within the switch case rule?
Any help very much appreciated!
Matt