Hi Folks
Got a slight issue, I am in the process of making a set of personalised emails for a client, within the email there is variable fields and as such through conditional script.
Roughly I have a column in the datamapper that specifies the field type in this case (SUV,Roadster,Ute) The customer gets a email that is relevant.
I have done the text portion through a 3 row table, with the relevant text in each box and the conditional script being show if field Vehicle Type equal to the relevant field, that is no problem.
However when it comes to the dynamic images, I have created folders within the images portion of designer, and named the sets of images with the relevant names (SUV,Roadster,Ute) and created the image to be a dynamic image based off that field.
Using the dynamic image wizard
Prefix is "image/FolderName/
Field being “Vehicle Type”
Format is “None”
Suffix is “.png”
In the designer Preview, this is working 100%, but if i try to send a test email or send it through workflow the images are jumbled and not correct/not changing.
This is the current script within this dynamic image
var field, result = “”;
field = record.fields[“Vehicle Type”];
if (field !== “”) result += “images/Carbox1/” + field + “.png”;
if (result !== “”) results.attr(“src”, result);
Maybe something is wrong here?
Many thanks