I included a richtext field in my Advanced PDF/HTM...
# advancedpdf
a
I included a richtext field in my Advanced PDF/HTML template, and now whenever it tries to render the PDF, it crashes if any user has put any of the following into the Rich Text field (but it has no problem with it in the NetSuite UI): • Unclosed tags • Tags with hyphenated attribute names like i data-my-attribute="hello world"spanFarewell, cruel world/span/i • Ampersand '&' not encoded to & • Maybe tags not supported by Rich Text (Someone had a meta tag which when removed, stopped throwing the "Ignored" error) I'm trying to make it so people can paste in what they want, into the Rich Text field, but not have it crash the PDF renderer when they print a Picking Ticket. What's your recommendation? I'm considering changing it to a plain Text Area and telling people "Sorry, no text formatting is possible on that field now.".
n
There might be a really easy way to do this, I don't know, (or think so) but you could... A User Event script can trigger on "PRINT" in the script you can add a temp field to the form and take the real field value, sanitise the content and populate your temp field. Use the temp field in the Adv Print template. by "temp" I mean that you do scriptContext.form.addField and the id would be "custpage_something_or_other" and is not stored against the record.