Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
SuiteScript 2.0: Hide a subtab using a beforeLoad function of a user event script
Overview
In N/ui/serverWidget module, there is no method that explicitly says that it can hide a subtab of a record. There's a tab object in the module but its only purpose is to set a tab's label and help text. Nevertheless, certain objects within the module can be used to hide a subtab. This is useful on scenarios such as limiting user's access based on role (or any other condition) without making a copy of the form.
How?
Hide all the contents of a subtab. Setting the display type of all the fields or sublist under a subtab to