You generally can't access record data in VIEW mod...
# suitescript
e
You generally can't access record data in VIEW mode; Client Scripts aren't really intended to run in VIEW mode except as button click handlers