Designer HTML Emails and Dynamic Images problems

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

When trying here with similar template using dynamic images in a subfolder and referencing them by a record field, it works well, no issues even when sending test emails.

So maybe there’s something else wrong in your template.

Is the issue even when doing live preview in browser?