Lee Brookes
12/20/2024, 3:20 PMCeligo AI
12/20/2024, 3:20 PMAI 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:
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.
******Celigo AI
12/20/2024, 3:21 PMSlack 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
Celigo AI
12/20/2024, 3:21 PM