According to the documentation, both of those meth...
# suitescript
r
According to the documentation, both of those methods are valid in SS2.0 on the ui.serverWidget.Form object