Srivalli
Srivalli

Reputation: 15

NetSuite Advanced PDF/HTML Rich text rendering - unexpected error

I have got a field defined as a rich text field and that's causing any unexpected error when printing picking tickets. Looks like there is a problem parsing rich-text fields on advanced PDF/HTML templates.

I have seen the suggestions to use third-party tools to render the rich text context without disturbing the formatting. I am not concerned about the formatting as long as the content is readable.

Any ideas, please.

Upvotes: 1

Views: 1175

Answers (2)

Morris S
Morris S

Reputation: 2594

You can use interpret built-in

 <p>
   <#assign myhtml = record.custbody_my_custom_body_field?interpret>
      <@myhtml />
 <p/>

Upvotes: 0

ehcanadian
ehcanadian

Reputation: 1784

Try wrapping the field in a CDATA section.

For example; <![CDATA[${item.description}]]>

Upvotes: 1

Related Questions