amy
07/18/2021, 7:24 PMDavid B
07/18/2021, 10:25 PMamy
07/18/2021, 10:41 PM<#if record.custbody_singapore_gst?has_content>
<#assign singaporeGSTData = record.custbody_singapore_gst?eval />
For GST Reporting Purposes<br />
...
<br />
</#if>
the 2nd line assigning the variable is what errors out 😕 the field in question will either be blank or contain a JSON-formatted string.David B
07/18/2021, 10:59 PM---begin-message---
Syntax error in ?eval-ed string in line 1, column 8:
Encountered "*ipsum*", but was expecting one of:
".."
"..*"
")"
---end-message---
ipsum
giving away that they're feeding the fields with Lorem ipsum to see if they error. I would say submit anyway and test by printing actual transactions, both with and without that field populated.David B
07/18/2021, 11:01 PMJon Kears
07/19/2021, 2:42 AM<#if record.item?has_content>
<#if record.customfield?has_content>
<#assign data = record.customfield>
<#assign m = data?eval>
<#list m["origItems"] as itemList>
this is the chain of checks that we had on our netsuite-provided pdf template (we had a json field at the header level which replicated the item list). It worked, but you had to "save anyway" past the errorDavid B
07/19/2021, 3:28 AMyou had to "save anyway" past the errorGood to know I arrived at the official NetSuite workaround 🤣🙃
amy
07/19/2021, 2:12 PM