how do I hide things in centres in netsuite that a...
# ask-stanley-ai
l
how do I hide things in centres in netsuite that are unused
c
AI generated answer (using internal Slack threads):
To hide unused things in centres in NetSuite, you can use a combination of permissions and SuiteScript. Here are the steps: 1. Permissions: You can control what a user can see in their center by adjusting their role's permissions. Go to Setup > Users/Roles > Manage Roles, select the role, and adjust the permissions accordingly. If a user doesn't have permission to a certain record type, it won't show up in their center. 2. SuiteScript: You can use SuiteScript to further customize what a user sees. For example, you can use a
beforeLoad
User Event Script to hide certain fields or subtabs on a record. Here's a basic example:
Copy code
javascript
function beforeLoad(context) {
    if (context.type !== context.UserEventType.VIEW) return;

    var form = context.form;

    // Hide a field
    var field = form.getField('custbody_my_custom_field');
    if (field) {
        field.updateDisplayType({
            displayType: serverWidget.FieldDisplayType.HIDDEN
        });
    }

    // Hide a subtab
    var subtab = form.getSubtab('custpage_my_custom_subtab');
    if (subtab) {
        subtab.updateDisplayType({
            displayType: serverWidget.SubtabDisplayType.HIDDEN
        });
    }
}
Remember to replace
'custbody_my_custom_field'
and
'custpage_my_custom_subtab'
with the actual IDs of the field and subtab you want to hide. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.794319212
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.791630268
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.791206598
Please provide your feedback on this answer.