As I have mentioned in my previous tip, in Suitescript 2.0 developer guide, few points are mentioned wrongly as below.
If you look for how to set display type of a field in either help or guide, you will find as below image.
But when you use the same syntax its not allowing to upload the code that is
displayType = serverWidget.FieldDisplayType.HIDDEN
But when I changed the syntax by replacing “=” to “:” as below
displayType : serverWidget.FieldDisplayType.HIDDEN
it worked 🙂
Try the same trial method, if you face similar issue.
Hope this trick will help you.