Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Field.maxLength for more information.
N/ui/serverWidget Module
Field.maxLength
Property Description:
The maximum length, in characters, of the field (only valid for text, rich text, long text, and textarea fields).
This property is supported only on scripted fields created using the N/ui/serverWidget Module.
Type:
number
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.maxLength
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.maxLength = 64;
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4335324500.html