<@U898NF87J> i usually grab the script mode / type...
# suitescript
a
@Nelli i usually grab the script mode / type in the pageInit event function and store it globally within the script - that way your other functions like linevalidation will have access to it