You can do it on PageInit or BeforeRecordLoad
# suitescript
r
You can do it on PageInit or BeforeRecordLoad