Why would `context.newRecord.getValue({ fieldId: '...
# suitescript
m
Why would
context.newRecord.getValue({ fieldId: 'customform' })
return
undefined
in the
beforeLoad
on a view event of a Sales Order? I was seeing the same thing in a workflow where the action to add a button based on the form would log
customform
was not a valid field.
s
maybe its related to the role, some roles don't have ability to see/change the form?
j
nah, it’s undefined in VIEW I think
m
Thanks, it does appear to be
undefined
in VIEW. As soon as I click EDIT, both script and workflow can see that value. Weird.