Values
CHECKBOXCURRENCYDATEDATETIMEDATETIMETZEMAILFILEFLOATHELPINLINEHTMLINTEGERIMAGELABELLONGTEXTMULTISELECTPASSWORDPERCENTPHONESELECTRADIORICHTEXTTEXTTEXTAREATIMEOFDAYURL
Consider the following as you work with these field types:
- The DATETIME field type is not supported with
addFieldmethods, you must specify DATETIMETZ. - The FILE field type is available only for Suitelets and will appear on the main tab of the Suitelet page. FILE fields cannot be added to tabs, subtabs, sublists, or field groups and are not allowed on existing pages. It is not supported with List.addColumn(options).
- The IMAGE field type is available only for fields that appear on lists, static list sublists or forms.
- The INLINEHTML field type should be considered as a ‘write-only’ type of field used to add a field on a form. The INLINEHTML field type does not support labels. The
labelparameter is required for all field types, but the UI does not display the labels specified for INLINEHTML fields. If you want to display an INLINEHTML field with a label, add a separate custom LABEL field. - All field types that work with text handle input as plain text, except for the INLINEHTML field type. HTML input is supported only in the INLINEHTML field type.
- Radio buttons that are inside one container are exclusive. The method
addFieldon form has an optional parametercontainer. For an example, see FieldGroup.label. - The DATETIME, FILE, HELP, INLINEHTML, LABEL, LONGTEXT, MULTISELECT, RADIO and RICHTEXT field types are not supported with Sublist.addField(options).
- The CHECKBOX, DATETIME, DATETIMETZ, FILE, HELP, INLINEHTML, LABEL, MULTISELECT, SELECT, and RADIO field types are not supported with List.addColumn(options).
For a description of these field types, and additional information regarding character limits and format restrictions, see Field Type Descriptions for Custom Fields.
Syntax
Important
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/ui/serverWidget Module Script Samples.
//Add additional code
...
let form = serverWidget.createForm({
title : 'Simple Form'
});
let field = form.addField({
id : 'custpage_text',
type : serverWidget.FieldType.TEXT,
label : 'Text'
});
...
//Add additional code