Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Field.alias for more information.
N/ui/serverWidget Module
Field.alias
Property Description:
An alternate name that you can assign to a serverWidget.Field object.
By default, the alias is equal to the field's internal ID.
This property is only supported on scripted fields created using the N/ui/serverWidget Module.
Type:
string
Supported Script Types:
SuiteScript 2.0 Suitelet Script Type and SuiteScript 2.0 User Event Script Type (beforeLoad(scriptContext))
Module:
N/ui/serverWidget Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Field.alias
Example:
// Code Example 1
//Add additional code
//...
var form = serverWidget.createForm({
title : 'Simple Form'
});
var field = form.addField({
id : 'custpage_textfield',
type : serverWidget.FieldType.TEXT,
label : 'Text'
});
field.alias = 'fieldid';
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4335158000.html