Dan Warner
12/19/2023, 9:27 PMcreatedfrom
field on an invoice record. Natively, the createdfrom
field formats as Sales Order #SOxxxxxxxxx
. I want my custom field to give its output in the format of SOxxxxxxxxx
.
On the Validation & Defaulting tab, I checked the Formula checkbox, and in the Default Value field, I added the following formula:
REPLACE({createdfrom}, 'Sales Order #')
From my understanding, this should remove "`Sales Order #`" from the output string. But instead, when I view an invoice record, my custom field just says ERROR: Invalid Expression
. Why does it not render the value as desired?Tim Chapman
12/19/2023, 9:29 PMDan Warner
12/19/2023, 9:32 PMTim Chapman
12/19/2023, 9:34 PMTim Chapman
12/19/2023, 9:34 PMvirtualEncoreTremor
12/19/2023, 9:47 PMREPLACE({createdfrom}, 'Sales Order #', '')
SUBSTR({createdfrom}, INSTR({createdfrom}, '#') + 1)
REPLACE({createdfrom}, 'Sales Order #')
Dylan Fields
12/19/2023, 9:59 PMDan Warner
12/19/2023, 10:13 PMTim Chapman
12/19/2023, 10:16 PM