if(type == 'view') then set the field
# suitescript
m
if(type == 'view') then set the field