Pablo Holland
Pablo Holland

Reputation: 3

posting images in a form

I am using free marker in a netsuite environment. I have a custom items field that displays an image and I need this image to appear on a quote document we send to our customers when they ask about a machine. All of our machines are one-offs so I need the system to pull in that information each time, rather than post one image and use html to insert into the template. I have been able to do this with custom text fields but have not been able to make it work with an image... I am still searching the help files but any assistance will be appreciated. Just point me in the right direct...;-)

Upvotes: 0

Views: 1279

Answers (1)

bknights
bknights

Reputation: 15437

The

${record.custitemfec_custfield_image?length}

probably needs to be:

${record.custitemfec_custfield_image}

Also it looks like you are trying to print a record for an item. Is that correct? If you are trying to print a transaction you probably want:

<img src="${record.item[0].item.custitemfec_custfield_image}" style="float: left; margin: 7px" /> 

or

<#list record.item as line>
...
    <img src="${line.item.custitemfec_custfield_image}" style="float: left; margin: 7px" /> 
...
</#list

Upvotes: 1

Related Questions