Quick question... Can anyone help with the below I...
# suitescript
a
Quick question... Can anyone help with the below I am trying to pull in the Absolute Value of field {customrecord.custrecord_payment_reg_delay} as {customrecord.custrecord_payment_reg_delay}?abs and it not returning the absolute value.
c
worst case if < 0 multiply by -1. abs was introduced in 2.23.0. Not sure what version of Freemarker NetSuite is running but if its earlier than that, you may be out of lukc.
s
Try putting the ?abs inside the curly braces: it should be
{field?abs}
instead of
{field}?abs
Freemarker treats text inside of the curly braces or the <# … > tags as code, everything else is treated as text
a
Thank you both. After trying the above and still resulting in the same error I opted to create a new Custom field and set the value in a WF after user submits ABS(field). Not the cleanest but ultimately is doing the trick.