Why is the code in the Advanced PDF Template edito...
# general
r
Why is the code in the Advanced PDF Template editor getting condensed after switching back from the WYSWIG mode? When return to the code from WYSWIG mode, the line breaks are gone and it makes the code difficult to read. I get this message: Be aware that the template editor may not function properly if you switch back to WYSIWYG mode after edits have occurred in source code mode. What happens is the code line breaks and indents are removed and it all gets put into one paragraph.
s
Be aware that not only does switching back to WYSIWYG going to potentially disrupt your line breaks and formatting, but it can add additional code to your template. Generally, I think of it as a one way door: once you switch to code editing, it is generally not a good idea to switch back to WYSIWYG. NEtSuite's warning is a good one here. It often cannot handle hand-generated code edits well, and they may break, sometimes quite badly, if you switch back and forth.
r
Thanks Scott--my workaround (for changing the logo) is to copy the code before going to WYSIWYG and then upon return paste it over the "corrupted" code--making a small adjustment for image size.
Another thing--it seems to be ignoring the custom form ID:
<#elseif record.customform.id='157'>
Not sure why
s
try printing out the values
${record.customform.id}
and
${record.customform}
to see what those variables contain
r
I met with a NS Support Rep and we noticed that Advanced PDF editor is ignoring record.customform.
They confirmed that customform is not exposed in Freemarker.
😞 1